C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
int main() {
unsigned int a, b, c, d = 0;
scanf("%d", &a);
for(b = 0; b < a; b++) {
d += b + 1;
}
for(b = a; b >= 1; b--) {
for(c = 1; c <= b; c++) {
printf("%d ", d--);
}
puts(" ");
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run