A BREAK STATEMENT IS USED TO EXIT A LOOP (A WHILE, DO-WHILE, OR FO...

36. A break statement is used to exit a loop (a while, do-while, or for statement) or to ter-minate a switch statement. A break statement is not legal anywhere else in a C++ pro-gram. Note that if the loops are nested, a break statement only terminates one level of the loop.