A loop within a loop is called:

Nested loop

inner loop

Complex loop

Outer loop