15th Mar 2021, 6:52 PM
Ira Sarkar
Ira Sarkar - avatar
3 Answers
15th Mar 2021, 7:06 PM
visph
visph - avatar
+ 1
Ira Sarkar #include <stdio.h> int main() { int rows, i, j, number = 1; scanf("%d", &rows); for (i = 1; i <= rows; i++) { for (j = 1; j <= i; ++j) { printf("%d ", number); ++number; } printf("\n"); } return 0; }
15th Mar 2021, 6:55 PM
SâgÌrāvßrï
SâgÌrāvßrï - avatar
16th Mar 2021, 3:29 PM
Ira Sarkar
Ira Sarkar - avatar