![]() |
ii) Conditional LoopsNow for a conditional loop. This is where you don't know in advance how many times you're going to have to go round the loop - you need to loop until something happens to stop the loop, or until a condition is met.
|
PROGRAM conditional; {a conditional loop} VAR
BEGIN
|
As you can see, the loop is repeated until the number typed in is 5.
|
© 1998 John Brewer |