Concept Flow - Infinite loop prevention
Start loop
Check condition
Yes
Execute loop body
Update variables
Go back to Check condition
No
Exit loop
The loop starts, checks a condition, runs the body if true, updates variables, then repeats until the condition is false to avoid infinite loops.