Synopsis: repeat loop_body until (condition);
The repeat...until() loop executes the attached
loop_body again and again as long as
condition evaluates to false
.
The loop_body may be either a single statement
or a block of statements.
Because condition is checked at the bottom of
loop_body, it is executed at least once, even if
condition is true
right from
start.
repeat...until() is similar to do...while() except that condition is logically inverted. The example below has been converted from the do...while() example.