Question: Write a program that will read in a list of even numbers (such as 2, 24, 8, 6) and compute the total of the
Write a program that will read in a list of even numbers (such as 2, 24, 8, 6) and compute the total of the numbers on the list. However, the user may enter an odd number, and this number should be excluded in the calculation. The list is ended with a sentinel value. Among other things, you must decide what would be a good sentinel value to use.
Step by Step Solution
3.33 Rating (144 Votes )
There are 3 Steps involved in it
To solve this problem we need to write a program that reads a list of numbers computes the total of ... View full answer
Get step-by-step solutions from verified subject matter experts
