Computer Science, asked by roquaiyyarashid0, 2 months ago

12345
1234
123
12
1
C program Solve this using for loop​

Answers

Answered by tawewetperolino
1

Answer:

#include <stdio.h>

int main() {

int i, j, rows;

printf("Enter the number of rows: ");

scanf("%d", &rows);

for (i = rows; i >= 1; --i) {

for (j = 1; j <= i; ++j) {

printf("%d ", j);

}

printf("\n");

}

return 0;

}

Similar questions