C++ Language/ProgramFlow/BreakStatement/BreakInNestedLoop

When there is nesting, a  statement only terminates the innermost loop.

Additional information about breaking out of a nested loop