Jump to content

Template:Computer Programming/Control/8

From Wikibooks, open books for an open world

Loop with condition at the beginning

[edit source]

This loop has a condition at the beginning. The statements are repeated as long as the condition is met. If the condition is not met at the very beginning then the statements inside the loop are never executed.