编程题:20
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= i; j++) {
System.out.printf("%d*%d=%-4d", j, i, j * i);
}
System.out.println();
}
}
}

posted on 2025-05-12 23:23  Swishy  阅读(5)  评论(0)    收藏  举报