Thursday, 18 July 2013

Program to Print Series

               1
               12
               123
               1234
               12345 */

#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",b);
}
getch();

}

No comments:

Post a Comment