A loop within a loop is called:

inner loop

Complex loop

Outer loop

Nested loop