What is looping in programming languages?
In programming, a "loop" is a piece of code that is allowed to
execute repeatedly until a condition is met. Under C, there are
"for" and "while" loops. Other languages have "foreach" and
"repeat..until" loops.
A "for" loop optionally sets a variable at a certain value, and
then executes a block of code while that (and perhaps other
variables) meet(s) certain conditions.
"While" loops are simpler types of loops since they only loop
while a condition is met - variables are set before the "while"
statement.
See the related links below for more information on looping in
C.