for语句-九九乘法表-2022-11-03
package structure;
public class ForDemo04 {
public static void main(String[] args) {
for (int i = 1; i < 10; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(i+"*"+j+"="+i*j+"\t");
}
System.out.println();;
}
}
}
还是有些成就感,嵌套+两个变量间的比较。