A loop within a loop is called:

Ads by google

A loop within a loop is called:

Nested loop

Outer loop

Complex loop

inner loop