Using break and continue | Decision making, Branching and Looping

Using break and continue

At times, it is desirable to exit from a loop or short-circuit the current iteration of a loop. The break and continue statements make it happen.