九九乘法表代码

 1 package chengfabiao;
 2 
 3 public class chengfabiao {
 4     
 5     public static void main(String[] args)
 6     {        
 7          //九九乘法表
 8         for(int x = 1; x <= 9; x++)
 9         {
10             for(int y = 1; y <= x; y++)
11             {
12                 System.out.print(y + "×" + x + "=" + (x*y) + "; ");
13                 
14             }
15             System.out.println();
16         }
17     }
18     
19 }

 

posted @ 2015-12-05 08:17  琦仔  阅读(652)  评论(0)    收藏  举报