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();
}
__________________________________________________________
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment