回复 11楼 谁与争疯
我也做了个,不过参照了17楼的。不过我的输出思路不同:
public class NineTable
{
public static void main(String[] args)
{
// 9*9表应为双层循环
for(int i = 1; i <= 9; i ++)
for(int j = 1; j <= i; j ++)
{
System.out.print(j+"*"+i+"="+(i*j)+"\t");
if (i==j)
System.out.println();
}
}
}