Concept Flow - Break and continue behavior
Start loop
Check condition
Yes
Inside loop body
If 'continue' condition?
Yes→Skip rest, next iteration
If 'break' condition?
Yes→Exit loop
Execute remaining code
Next iteration
Condition false
→Exit loop
The loop starts and checks its condition. Inside, if 'continue' is met, it skips to the next iteration. If 'break' is met, it exits the loop immediately. Otherwise, it runs the rest of the loop body.