quinta-feira, 25 de abril de 2013

Pascal Repeat... Until

Control Structures - Module 3

3. Control Structures

3.3. Repeat... Until

This Loop uses a condition, until this condition is met the loop will continue to repeat itself.

Syntax:

REPEAT
<instructions>
UNTIL <condition>

Example:


I've commented the most important instructions to avoid confusion, this program is a very simple program, it will continuously ask the user to choose a number, until that number is bigger than 10. Below you will see the program output.






0 comentários

Posts a comment

 
© Doc's Workshop
Designed by Blog Thiết Kế
Back to top