Nested Loops





c nested loops analysis and cautions youtube

In most cases the outer loop is what causes the inner loop to execute. The inner loop then repeats for as many times as is specified in the code or command materials. When the inner loop completes, the outer loop is executed for its second iteration, triggering the inner loop again, and so on until the requirements for the outer loop are complete.If a loop exists inside the body of another loop, it's called nested loop. Here's an example of nested for loop.