Saturday, February 14, 2015

C program to print numbers from 1 to 10 using for loop


#include<stdio.h>
#include<conio.h>

void main()
{
int i;
clrscr(); //to clear the screen

for(i=1;i<=10;++i)
{
printf("%d",i);
printf("
");

}

getch(); //to stop the screen
}