4. • Execute a sequence of statements multiple
times and abbreviates the code that manages
the loop variable.
SYNTAX:
for(INITIALIZATION;CONDITION;INCREMENT/DECREMENT)
{
// Code for the for loop's body
}
6. • Entry-check loop
• It tests the condition before executing the
loop body.
• Repeats a statement or group of statements
while a given condition is true
Syntax:
while ( condition )
{
/* code */
}
8. • Exit –check loop
• Like a while statement, except that it tests the
condition at the end of the loop body
• It will be executed at least once in the execution
of the program
SYNTAX:
do
{
/* code */
}
while ( condition );