543214321321211/*C program to print the given number pattern*/
#include<stdio.h>#include<conio.h>
void main()
{
int i, j;
clrscr();
for(i=5;i>=1;i--)
{
for(j=5;j>=1;j--)
{
if(j>i)
printf(" ");
else
printf("%d",j);
}
printf("\n");
}
getch();
}
output
543214321
321
21
1
Comments
Post a Comment