Conditional Loops
Conditional Loops
 We may not know in advance how many times a loop
should repeat, so a fixed loop is not always the best
solution.
 Instead we can use a conditional loop to repeat a block of
code until a specific condition is met.
 There are 2 types of conditional loop:
DO…WHILE some condition is true
REPEAT…UNTIL some condition is true
Conditional Loops – DO…WHILE
Conditional Loops – DO…WHILE
Conditional Loops – REPEAT…UNTIL
Conditional Loops – REPEAT…UNTIL

SDD Cconditional Loops