5.8 — Break and continue « Learn C++
This program allows the user to type up to 10 numbers, and displays the sum of all the numbers entered at the end. If the user enters 0, the break causes the loop to terminate early (before 10 numbers have been entered). Note that break can be used to get...