Java实现 蓝桥杯VIP 算法训练 乘法表

问题描述
输出九九乘法表。
输出格式
输出格式见下面的样例。乘号用“”表示。
样例输出
下面给出输出的前几行:
1
1=1
21=2 22=4
31=3 32=6 33=9
4
1=4 42=8 43=12 4*4=16


public class 乘法表 {
	  public static void main(String[] args) {
	        for (int i = 1; i <= 9; i++) {
	            for (int j = 1; j <= i; j++) {
	                System.out.print(i + "*" + j + "=" + i * j + " ");
	            }
	            System.out.println();
	        }
	    }


}

原文地址:https://www.cnblogs.com/a1439775520/p/12948494.html