1 package learning; 2 3 public class JiuJiu { 4 5 /** 6 * @param args 7 */ 8 public static void main(String[] args) { 9 for(int i=1;i<=9;i++){ 10 for(int j=1;j<=i;j++){ 11 System.out.print(i+"x"+j+"="+i*j); 12 if(2<=i && j!=i) 13 System.out.print(","); 14 } 15 16 System.out.println(); 17 } 18 } 19 }