Could U Plz Xplain Me About Looping? Iam Just A Beginner & I Need A Clear Xplanation
Please try to write in a proper English.It's recomended that you read our posting guidelines,you can find them in Help link in upper right corner.
About your question,well loops enables you to do something again and again.
There are three kinds of loops:
1.for -> counter loop
2.while ->will loop while it's condition is nonzero(First check condition and then run)
3.do-while->same as while,except it must be executed at least once(First run then check condition)
Here is example of for loop:
int initialValue;
int endValue=5;
- for(initialValue=1;initialValue<endValue;initialValue++)
-
{
-
printf("Hello world\n");
-
}
-
This will print 4 times Hello world.
Savage