Concept Flow - Loop execution flow
Initialize counter i=0
Check condition i < 3?
No→EXIT LOOP
Yes
Execute loop body
Update counter i = i + 1
↩Back to condition check
The loop starts by setting a counter, checks if the condition is true, runs the loop body if yes, then updates the counter and repeats until the condition is false.