Concept Flow - Break and continue
Start Loop
Check Condition
Check Break?
Yes
Break Loop
Check Continue?
Yes
Skip Rest of Loop
↩Back to Start Loop
The loop starts and checks the condition. If false, it exits. If true, it checks if break or continue applies. Break exits loop immediately; continue skips to next iteration.