打印九九乘法表,如下图所示:
public class MulFor02{
public static void main(String[] args){
for(int j = 1; j <= 9; j++){ //列
for(int i = 1; i <= j; i++){ //行
System.out.print(i + " * " + j + " = " + (i * j) + "\t");
}
System.out.print("\n");
}
}
}