package base.baidua;
public class ForDemo2 {
public static void main(String[] args) {
//先打印第一列,把固定的i在用一个循环包起来,去掉重复项i <=j ,调整样式
for (int j = 1; j <= 9; j++) {
for (int i = 1; i <= j; i++) {
System.out.print(j +"*"+i+ "=" +(i*j) + "\t");
}
System.out.println();
}
}
}