Zebra0.com

cpp errorsFinding a total

Finding a total

In this example, the user can enter either a number or "Q" to end. If the input is not "Q" and is not an integer, an error messages is printed to let the user know the input was not valid. The invalid input is not added to the total.

output