Untitled
unknown
plain_text
16 days ago
375 B
1
Indexable
Never
#include <stdio.h> int main() { int N; scanf("%d", &N); int x = N, var = 1; for (int i = 0; i < N; i++) { for (int j = 0; j < i; j++) { printf("0 "); } for (int j = 0; j < x; j++) { printf("%d ", var); } var++; x--; printf("\n"); } }
Leave a Comment