|
package xiangmu;
|
|
|
|
public class Ceshi {
|
|
public static void main(String args[]) {
|
|
// 嵌套循环输出九九乘法表
|
|
// \t 水平制表符 \n 换行符
|
|
for(int m = 1; m <= 9; m++) {
|
|
for(int n = 1; n <= m; n++) {
|
|
System.out.print(n + "*" + m + "=" + m*n + "\t");
|
|
}
|
|
System.out.print("\n");
|
|
}
|
|
}
|
|
}
|