package com.bdqn.yingyun; public class ShuZuChengFa { public static void main(String[] args) { int a[][] = new int[9][9]; for (int i = 0; i < a.length; i++) for (int j = 0; j <= i; j++) a[i][j] = (i + 1) * (j + 1); for (int i = 0; i < a.length; i++) { for (int j = 0; j <= i; j++) System.out.print((i+1)+"*"+(j+1)+"="+a[i][j] + " "); System.out.print("\n"); } } }