這次要做出像這樣的九九乘法表:
for (int k=0; k<2; k++) {
for (int j=1; j<=9; j++) {
for (int i=2; i<=5; i++) {
int newi = i + k * 4;
int result = newi * j;
System.out.printf("%d x %d = %d\t" , newi, j, result);
}
System.out.println();
}
System.out.println("-----");
}
}
}