A loop within a loop is called:

Nested loop

Complex loop

inner loop

Outer loop