📅  最后修改于: 2022-03-11 14:52:47.808000             🧑  作者: 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();
}
}
}