public static void nineNineMultiTable() {
for (int i = 1, j = 1; j <= 9; i++) {
System.out.print(i + "*" + j + "=" + i * j + " ");
if (i == j) {
i = 0;
j++;
System.out.println();
}
}
}
转载于:https://www.cnblogs.com/westmaniac/archive/2010/05/15/1736421.html