Up | Next | Prev | PrevTail | Tail |
REPEAT… UNTIL is very similar in purpose to WHILE… DO. Its syntax is:
(PASCAL users note: Only a single statement – usually a group statement – is allowed between the REPEAT and the UNTIL.)
There are two essential differences:
As an example, we rewrite the example from the WHILE …DO section:
In this case, the answer will be the same as before, because in neither case is a term added to EX which is less than 1/1000.
Up | Next | Prev | PrevTail | Front |