Control structures
Loop (repetition)
bounded loop:
for x = 1 to 10 do { statements };
unbounded loop:
while (condition) do { statements };
repeat/iterate statements in loop body until condition changes
must make sure loop terminates
Previous slide
Next slide
Back to first slide
View graphic version