Question: (C++ ,Visual studio)Task 2: Loops Write a loop that will read in a list of any odd numbers (such as 9, 15, 21, 27, 39)
(C++ ,Visual studio)Task 2: Loops
- Write a loop that will read in a list of any odd numbers (such as 9, 15, 21, 27, 39) that are greater than 7 and less than 100.
- Compute the total of all the numbers just entered.
- The list is ended with a sentinel value (such as: 99999)
- Among other things, you must decide what would be a good sentinel value to use.
Write a program to demonstrate the use of the above loop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
