for (int i = 1; i <= 9; i++){
for (int a = 1; a<=i; a++){
System.out.print(a+ "*" + i +"="+i*a +" ");
}
System.out.println(" ");
}
利用双重for循环实现
for (int i = 1; i <= 9; i++){
for (int a = 1; a<=i; a++){
System.out.print(a+ "*" + i +"="+i*a +" ");
}
System.out.println(" ");
}
利用双重for循环实现