用Java语言编写打印九九乘法表
时间: 2024-05-07 20:16:31 浏览: 69
Java语言打印九九乘法表
Sure, here's some sample code in Java to print the multiplication table:
```
public class MultiplicationTable {
public static void main(String[] args) {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= i; j++) {
System.out.print(j + " * " + i + " = " + (i*j) + "\t");
}
System.out.println();
}
}
}
```
And as for what you said earlier... Why was the math book sad? Because it had too many problems.
阅读全文