Section 5.3

Nested Loops

Summary

  • What is a nested loop?
  • How do they work?
  • When are they useful?
  • Programming for efficiency.

What is a nested loop?

Nested loops are just what they sound like: a loop within a loop. There are no software limitations on how many nested loops you can create. However, you won’t typically need more than three levels of nesting.

How do they work?

When are they useful?

Programming for efficiency.

Resources