Any C statement can go inside the body of a loop—even another loop. When you put a loop within a loop, you are creating a nested loop.
Each time the outer loop is repeated, the inner loops are reentered, their loop control expressions are reevaluated, and all required iterations are performed.