What is a nested loop?

A nested loop consists of two or more loop structures nested inside one another.

This lesson illustrates the use of one for loop nested inside another for loop.

Each of the for loops run an incremental counter and uses the value of the counter to determine when to stop looping.