7.10 — Break and continue
Although you have already seen the break statement in the context of switch statements (), it deserves a fuller treatment since it can be used with other types control flow statements as well. The causes a while loop, do-while loop, for loop, or switch statement to end, with execution continuing …