Unit 7 · Lesson 6
Build the idea
Start with the concept and its key vocabulary.
In a nested loop, the inner loop completes all its iterations for every one iteration of the outer loop. Three rows and four columns therefore create 3 × 4 = 12 combinations. Keep the inner loop indented and close ERL loops in the reverse order that they opened.
A loop placed inside another loop.
The enclosing loop that starts a new complete run of the inner loop.
The enclosed loop that completes for each outer-loop iteration.
One pairing of an outer-loop value with an inner-loop value.