第2个回答 2010-10-24
这是标准的九九乘法表:刚做的!呵呵
public final class one_for {
/**
* @param args
*/
public static void main(String[] args) {
for (int i = 1, j = 1; i <= 9; j++) {
System.out.print(j + "*" + i + "=" + j * i + " \t");
if (i == j) {
i++;
j = 0;
System.out.println();
}
}
}
}