public class Xiaojiujiu { public static void main(String[] args) { int m = 9; for (int i = 1; i <= m; i++) { for (int j = 1; j <= i; j++) { int a = j; int b = i; int c = a * b; System.out.print(a + "*" + b + "=" + c); System.out.print(" "); } System.out.println(); } } }