C-1 九九乘法表

 1 /*
 2 九九乘法表
 3 
 4 注意:转义字符:'\x' x表示任意。
 5                 \t tab键
 6                 \r 回车
 7                 \n 换行
 8 
 9 */
10 class ForForDemo{
11     public static void main(String[] args){
12         for(int x=1; x<=9; x++){
13             for(int y=1; y<=x; y++){
14                 System.out.print(y+"*"+x+"="+y*x+"\t"); 
15             }
16             System.out.println();
17         }
18     }
19 }

 

posted @ 2015-08-19 15:55  小懒66  阅读(158)  评论(3编辑  收藏  举报