/** * @author HelloWorld * @create 2021-04-06-14:34 * @email 154803771@qq.com */ public class Test7 { // 打印九九乘法表 public static void main(String[] args) { int j, i; for (i = 1; i <= 9; i++) { for (j = 1; j <i ; j++) { System.out.print(j + "*" + i + "=" + j*i + "\t"); } System.out.print(j + "*" + i + "=" + j*i + "\n"); } } }