Concept Flow - Nested loops
Start Outer Loop i=1
Start Inner Loop j=1
Execute Inner Loop Body
Update j = j+1
Check j <= max_j?
No→End Inner Loop
Yes
Update i = i+1
Check i <= max_i?
No→End Outer Loop
↩Back to Inner Loop Body
The outer loop runs first. For each outer loop step, the inner loop runs completely. Then the outer loop moves to the next step.