📅  最后修改于: 2022-03-11 14:44:45.245000             🧑  作者: Mango
public class Main {
public static void main(String[] args) {
// write your code here
int j = 1;
for(int k = 5; k >= 1; k--){
for (int d = 1; d < k; d++ ){
System.out.print(j+ " ");
j += 1;
}
System.out.println();
}
}
}