Java代码——九九乘法表

 

 

//九九乘法表

public class JJH3 {

public static void main(String[] args) {

System. out . println("\t\tt九九乘法表");

int i,j;

for(i=1;i<=9;i++) {

for(j=1;j<=i;j++) {

system. out. printf( "%d*%d-%2d\t" ,i,j,i*j);

}

System. out . println();

}

}

}