0
I can't get it, help please
3 Answers
+ 2
with only one loop:
https://code.sololearn.com/c9Rrk518ue9R/?ref=app
+ 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;
}
0
Thanks visph
SâgĂŚrÄvĂźrĂŻ