A loop within a loop is called:

Nested loop

Complex loop

Outer loop

inner loop