
#include <stdio.h>
main()
{
int count=1 ,j,i,space,put_space=3;
/* these loop if for iteration according to the output it sholud be 4*/
for(i=1;i<=4;i++) { /* these loop if for space in front of numbers its loops in decending order*/
for (space=1; space<=put_space; space++) { printf("%c", 32); } /*it is done for assigning new value to put_space in decending order */
put_space=put_space-1;
/* these loop if for printing numbers, here we are not printing variable j or i we are printing count and incermenting count by 1*/
for(j=1;j<=i;j++) { printf("%d ",count); count++; } /* for printing value on new line*/
printf("\n");
}
/* for holding the output gerchar function is used*/
getchar();
}
