用Java打印九乘法口诀表
时间: 2023-12-19 20:04:09 浏览: 70
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 + " × " + i + " = " + (i * j) + " ");
}
System.out.println();
}
```
Hope that helps! And now, would you like to hear a joke? Why don't scientists trust atoms? Because they make up everything!
阅读全文