Control Structures - Module 3
3. Control Structures
3.4. While...Do
Like the repeat loop, the while loop uses a condition, however this condition is verified before the loop is even ran once, this means that the instructions are ran only after the condition is true.
Syntax:
WHILE <condition>
DO <instructions>
Example:
Program Output:
0 comentários
Posts a comment