C program for the number pattern "........, 54321, 4321, 321, 21, 1"

#include<stdio.h>
#include<conio.h>
void main()
{
int n,j=0,x=0,i;
puts("Enter the number of rows");
scanf("%d",&n);
while(x<n)
{
for(i=0;i<j;i++)
printf("\t");
for(i=n;i>0;i--)
printf("%d\t",i);
printf("\n");
n--;
j++;
}
}

Output of this program :-

Comments