4ever Programming Solutions
All about programming and blogging.
Showing posts with label
Loops in C
.
Show all posts
Showing posts with label
Loops in C
.
Show all posts
Thursday, January 23, 2014
C Program to print from 1 to 10 using while loop
#include<stdio.h>
int main()
{
int counter=1;
while(counter<=10)
{
printf("%d\n",counter);
++counter;
}
return 0;
}
Older Posts
Home
Subscribe to:
Posts (Atom)