Template:Computer Programming/Control/8

From Wikibooks, open books for an open world
Jump to: navigation, search

Loop with condition at the beginning[edit]

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.