/* Program to
print the pattern */
#include<stdio.h>
#include<conio.h>
void
main()
{
int i,j;
clrscr();
for(i=5;i>=1;i--)
{
for(j=i;j>=1;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
OUTPUT
54321
4321
321
21
1
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.