/**5
* 輸出9*9乘法表
**/
public class Test{ public static void main(String[] args){ for (int i = 1; i < 10; i++) { for (int j = 1; j <= i; j++) { System.out.print(i); System.out.print(‘*‘); System.out.print(j); System.out.print(‘=‘); System.out.print(i*j); System.out.print(" "); } System.out.println(); } } }
时间: 2024-12-19 10:15:49