Friday 18 May 2012

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("\n");
}


getch(); //to stop the screen
}


Related Posts Plugin for WordPress, Blogger...