编写一个Java程序,输出九九乘法表。

2025-02-26 09:01:09
推荐回答(1个)
回答1:

public static void main(String[] args) {
int x, y;

for (x = 0; x <= 9; x++) {
for (y = 1; y <= x; y++) {
System.out.print(y + "*" + x + "=" + x * y + "\t");
}
System.out.println();
}
}