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