Program to print series 1,2,3,…,10 using “for” loop.

#include<stdio.h>
#include<conio.h>
void main()
{
   int i;
   clrscr();
   for(i=1;i<=10;i++)
     {
     printf("\n\n%d",i);
     }
   getch();
}

Leave a Reply