Thursday, 18 July 2013

Program to Print Series

               1
               22
               333
               4444
               55555 */

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

}

No comments:

Post a Comment