Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started