C++ Language/ProgramFlow/BreakStatement/BreakInNestedLoop

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

Additional information about breaking out of a nested loop