Please enable JavaScript to use CodeHS

Chapter 4


4.4 Nested Iteration

Nested for Loops

Nested while Loops

Make a Rectangle

Nested Loop Iteration Counts

Inverted Triangle

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Addition Table


Term Definition
Nested Loops When a loop is placed within another loop. The total number of runs for a nested loop will be the outer loop * inner loop.