package day1;
public class For99excel {
//for循环实现99乘法表
public static void main(String[] args) {
for (int a = 1; a <= 9; a++) {
for (int b = 1; b <= a; b++) {
System.out.printf("%2d * %2d = %2d ", a, b, a * b);
}
System.out.println();//每一次内层循环结束换行
}
}
}
99乘法表
于 2023-02-13 21:26:05 首次发布