New Activity
Play Matching Game
1. Loop 1
2. Loop 2
3. Loop 3

Boolean expression appears at the end of the loop

While loop

while( condition){ code }

do{ conditional code} while (condition)

example of Exit Control Loop.

for( int; condition; increment) { conditional code}

Do While Loop

When the expression is tested and the result is false, the loop body will be skipped and the first statement after the____ loop will be executed.

useful when you know how many times a task is to be repeated.

can be thought of as a repeating if statement.

similar to while loop with only difference that it checks for condition after executing the statements

guaranteed to execute at least one time.

For Loop

control flow statement that allows code to be executed repeatedly based on a given Boolean condition.

also called Entry control loop

a shorter, easy to debug structure of looping

repetition control structure that allows you to efficiently write a loop that needs to be executed a specific number of times.