5.8 — Break and continue « Learn C++
In this version, by using a single break statement, we’ve avoided the use of a boolean variable (and having to understand both what its intended use is, and where it is set), an else statement, and a nested block. Minimizing the number of variables used a...