Mult
public class MULT
{
public static void main(String args[])
{
int k;
for(int x=1;x<=9;x++)
{
for(int y=1;y<=x;y++)
{
k=y*x;
System.out.print(y+"×"+x+"="+k+(k<10?" ":"\0"));
}
System.out.print("\n");
}
System.out.print("\n");
for(int x=1;x<=9;x++)
{
for(int y=1;y<=9;y++)
{
k=y*x;
System.out.printf("%d×%d=%d%s", y, x,k,k<10?" ":"\0");
}
System.out.printf("\n");
}
}
}
posted on 2017-10-20 22:38 MACHINE_001 阅读(260) 评论(0) 编辑 收藏 举报