High-level Programming Language (Pascal)

Repetition Structure

Nested Loops

The loop body of a loop may contain any legal statements. In particular, it is possible to place while-do loop, repeat-until loop or for loop in the loop body of another loop. The resulting control structure is a nesting of loops. Nested loops consist of an outer loop with one or inner loops. Each time the outer loop is repeated, the inner loops are reentered, their exit conditions are reevaluated and all required iterations are performed.

Hosted by www.Geocities.ws

1