用Java双重循环打印九九乘法表
时间: 2023-05-21 20:04:05 浏览: 147
Java语言打印九九乘法表
Sure, here's the Java code to print the multiplication table:
```
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(j + " x " + i + " = " + (i*j) + "\t");
}
System.out.println();
}
```
This will output the multiplication table from 1x1 to 9x9.
阅读全文