publicclassTest1{publicstaticvoidmain(String[] args){int n =0;for(int i =1;i <10;i++){for(int m =1;m <= i;m++){
n = i*m;System.out.print(m +"*"+ i +"="+ n +" ");}System.out.println();}}}
九九乘法表(Java)代码:public class Test1{ public static void main(String[] args){ int n = 0; for(int i = 1;i < 10;i++) { for(int m = 1;m <= i;m++) { n = i*m; System.out.print(m + "*" + i + "=" + n + " "); } System.out.println(); }