九九乘法表

public class Demo

{

 public static void main(String[] args)

 {

  for (int x=1;x<=9 ;x++ )

  {

   for (int y=1;y<=x ;y++ )

   {

    System.out.print(y+"*"+x+"="+x*y+"\t");

   }

   System.out.println();

  }

 }

}

分享到:
关键词:Java

网友留言(0 条)

发表评论