Template:Computer Programming/Control/8

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.