java打印如下图乘法口诀表,急!
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/19 02:57:44
java打印如下图乘法口诀表,急!
for ( int i = 1; i < 10; i++ )
{
\x09for ( int k = 1; k < i; k++ )
\x09{
\x09\x09System.out.print ("\t\t");
\x09}
\x09for ( int j = i; j < 10; j++ )
\x09{
\x09\x09System.out.print (i + " * " + j + " = " + i * j + " \t");
\x09}
\x09System.out.println ();
}
{
\x09for ( int k = 1; k < i; k++ )
\x09{
\x09\x09System.out.print ("\t\t");
\x09}
\x09for ( int j = i; j < 10; j++ )
\x09{
\x09\x09System.out.print (i + " * " + j + " = " + i * j + " \t");
\x09}
\x09System.out.println ();
}