A loop within a loop is called:

Nested loop

Outer loop

inner loop

Complex loop