You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution is fine, but there is a logical mistake in the code we were provided.
The minor issue here is that the case 10 will never be hit if we modulus with 10.
If we want the switch to count all even numbers we should make a case label for 0 not 10.
The text was updated successfully, but these errors were encountered:
https://github.com/jaege/Cpp-Primer-5th-Exercises/blob/master/ch5/5.13.md
The solution is fine, but there is a logical mistake in the code we were provided.
The minor issue here is that the case 10 will never be hit if we modulus with 10.
If we want the switch to count all even numbers we should make a case label for 0 not 10.
The text was updated successfully, but these errors were encountered: