The program uses loops to print the numbers from 0 to the user input.
It also uses loops to print the indented space before each iteration value.
The program in C where comments are used to explain each line is as follows:
#include <stdio.h>
int main(){
<em> //This declares userNum as integer</em>
int userNum;
<em> //This gets input for userNum from the user</em>
scanf("%d",&userNum);
<em> //This iterates through from 0 to userNum</em>
for (int i = 0; i <= userNum; i++ ) {
<em> //This iterates from 0 to current iteration value</em>
for (int j = 0; j < i; j++ ) {
<em> //This prints the indents</em>
printf(" "); }
<em> //This prints the current iteration value</em>
printf("%d\n",i); }
}<em>//The program ends here</em>
<em />
At the end of the program, the program outputs the indent, followed by the iteration value and a new line.
See attachment for the program sample run
Read more about loops at:
brainly.com/question/21751160