Concept Flow - Break statement
Start Loop
Check Condition
Yes
Execute Loop Body
Is break triggered?
Yes→Exit Loop
No
Next Iteration
Back to Check Condition
End Loop
↩Back to Check Condition
The loop starts and checks its condition. If true, it runs the body. If a break is triggered inside, it exits the loop immediately. Otherwise, it continues to the next iteration until the condition is false.