What does break and continue statements do?

Q

What does break and continue statements do?

✍: Guest

A

Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.

2011-08-16, 3365👍, 0💬