Sunday, 9 October 2011

to print from 5,54,543,5432,54321


#include<stdio.h>
#include<conio.h>
main()
{
int i,j;
for(i=5;i>=1;i--)
{
printf("\n");
for(j=5;j>=i;j--)
{
printf("%d",j);
}
}
getch();
return 0;
}

No comments:

Post a Comment