Thursday, 18 July 2013

Program To Print a Series of Same Numbers

               11111
               2222
               333
               44
               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",a);
}
getch();
}

No comments:

Post a Comment