Write a program that sums a series of (positive) integers entered by the user, excluding all numbers that are greater than 100. We are going to use a sentinel value (also known as a flag value) to control the loop. If the user wants to quit summing up numbers, the user will enter a (-1). The first line should print out a title that says something like “Problem 3: summing positive values entered by the user that are less than 100”. Note: for this problem you only can use while loop as you don’t know how many numbers the user wants to enter.
Answers
Answered by
0
Answer:
I had written the code in c++
Attachments:
Similar questions