Skip to Main Content
Students' Guide to Program Design
book

Students' Guide to Program Design

by Lesley Anne Robertson
May 2014
Intermediate to advanced content levelIntermediate to advanced
188 pages
7h 8m
English
Newnes
Content preview from Students' Guide to Program Design
Students' Guide to
Program
Design
5.2 Repetition using the REPEAT..UNTIL
structure
The REPEAT.UNTIL structure is similar to the DOWHILE structure, in
that a group of statements are repeated, in accordance with a specified
condition. However, where the DOWHILE structure tests the condition
at the beginning of the loop, a REPEAT..UNTIL structure tests the
condition at the end of the loop. This means that the statements within
the loop will be executed once, before the condition is tested. If the
condition is false, the statements will then be repeated UNTIL the
condition becomes true.
The format of the REPEAT..UNTIL structure is
REPEAT
statement ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick

Publisher Resources

ISBN: 9781483141442