package studying; public class MultiplicationTable { public static void main(String[] args) { //this program is 9*9 multiplication table for(int j = 1; j < 10; j++) { for(int i = 1; i <= j; i++) { System.out.print(i + "*" + j + "=" + (i*j) + " "); } System.out.println(); } } }
结果展示: