Java编写99乘法表

class dome1
{
public static void main(String[] args)

{
for ( int i = 1; i <= 9; i++ )
{
for (int j = 1; j <= i ;j++ )
{
System.out.print(j + " * " + i + " = " +j * i + "\t");
}
System.out.println("\n");
}
}
}

posted @ 2018-09-07 16:04  何都督  阅读(410)  评论(0编辑  收藏  举报