输出九九乘法表。
public class example16 {
public static void main(string[] args) {
table(9);
}
public static void table(int n) {
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
system.out.print(j + * + i + = + j * i+\t);
}
system.out.println();
}
}
}
以上就是java经典编程题--九九乘法表的详细内容。