The C Programs
An ultimate blog where you can find almost all C programs.....!!
Pages
Home
Contact Us
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
}
C program to print numbers from 1 to 10 using for loop
2012-05-18T06:35:00-07:00
Neeraj Mishra
loop|
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)