Concept Flow - Infinite loops
Start
Check loop condition
Condition true?
No→Exit loop
Yes
Execute loop body
Update variables (optional)
Check loop condition
The loop keeps running as long as the condition is true. If the condition never becomes false, the loop runs forever, causing an infinite loop.