Like if statement for loop also nested. The loop within the loop is called nested loop. In nested for loops two or more for statements are included in the body of the loop. The number of iterations in this type of structure will be equal to the number of iterations in the outer loop multiplied by the number of iterations in the inner loop.
Nesting of for loops
Run Example >