Concept Flow - While loop execution model
Initialize variable
Check condition
|Yes
Execute loop body
Update variable
Back to Check condition
Exit loop
↩Back to Check condition
The while loop starts by checking a condition. If true, it runs the loop body, updates variables, then checks the condition again. It stops when the condition is false.