Earn while u Learn

Tips tweaks hacks on computer with C C++ VB tutorials and ways to earn money online

ad

program to print 1 to 100

this C code will print 1 to 100. It is a very good example of  using " while loop " in C.
Code:
__________________________________________________________
#include(stdio.h)
#include(conio.h)
main()
{
int x=1;
while(x<=10)
{
printf(\n\t"%d",x);
x++;
}
getch();
}
__________________________________________________________

0 comments:

Sign in / Join

Labels