输出九九乘法表

 1 package zfc;
 2 
 3 public class Zfc {
 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 }
20         

 

posted @ 2015-10-10 11:00  dirgo  阅读(228)  评论(1编辑  收藏  举报