Answer:
Please find the answer below
Explanation:
// Online C compiler to run C program online
#include <stdio.h>
int main() {
// Write C code here
//printf("Hello world");
int userNum;
int i;
int j;
scanf("%d", &userNum);
/* Your solution goes here */
for(i = 0; i<=userNum; i++){
for(j = 0; j <= i; j++){
printf(" ");
}
printf("%d\n", i);
}
return 0;
}