Concept Flow - break and continue
Start Loop
Check Condition
Yes
Inside Loop Body
If 'continue' condition?
Yes→Skip rest, go to next iteration
If 'break' condition?
Yes→Exit Loop
Execute remaining code
Next iteration
↩Back to Check Condition
The loop starts and checks its condition. Inside the loop, if 'continue' is triggered, it skips to the next iteration. If 'break' is triggered, it exits the loop immediately. Otherwise, it runs the remaining code and repeats.