JAVA编程--------------16、输出9*9乘法表

 1 package FushiExam;
 2 
 3 public class Text_16 {
 4 
 5     public static void main(String[] args) {
 6         // 输出9*9乘法表
 7         for(int i=1;i<10;i++) {
 8             for(int j=1;j<=i;j++) {
 9                 System.out.print(j+"*"+i+"="+i*j+"  ");
10             }
11         System.out.println();
12         }
13 
14     }
15 
16 }

猜你喜欢

转载自www.cnblogs.com/fmust/p/12488994.html
今日推荐