Search C Program | nimishsoft@gmail.com

Print 1 to 10 using for loop

/* Print 1 to 10 using for loop */

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

Related Post:
Print 1 to 10 using while loop
http://cbasicprogram.blogspot.in/2012/01/print-1-to-10-using-while-loop.html

7 comments: