1 //9*9乘法表 2 for(int i=1;i<=9;i++) {//在控制行 3 for(int j=1;j<=i;j++) {//控制列 4 System.out.print(j+"*"+i+"="+j*i+" "); 5 } 6 System.out.println(); 7 }