Thursday, 18 July 2013

Program To Print Reverse Series of different numbers

               54321
               5432
               543
               54
               5  */

#include <stdio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the Value\n");
for (a=1;a<=5;++a)
{
printf("\n");
for (b=5;b>=a;--b)
printf("%d",b);
}
getch();

}

No comments:

Post a Comment