public class JiuJiuChengFaBiao {
public static void main(String[] args){
for(int a=1; a<10; a++){
//进入循环,内循环会被重新定义
for(int b=1; b<a+1; b++){
System.out.print(a+"*"+b+"="+(a*b)+" ");
}
System.out.println("");
}
}
}
原文:https://www.cnblogs.com/shlo/p/11666192.html