terça-feira, 7 de maio de 2013

Pascal While... Do


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

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