for语句循环,九九乘法表

 1 public class forTest04{
 2     public static void main(String[]args){
 3         for (int j =1;j<=9 ;j++ ) {
 4             for (int i =1;i<=j ;i++ ) {
 5                 System.out.print(j+"*"+i+"="+(i*j)+"\t");
 6             }
 7             System.out.println( );
 8         }
 9     }
10 }

 

posted @ 2022-02-10 21:29  捞月亮的渔夫  阅读(89)  评论(0)    收藏  举报