Question: Write a loop that will keep reading integers from user input until the sum reaches or exceeds 100, outputting that sum. The input integers are

Write a loop that will keep reading integers from user input until the sum reaches or exceeds 100, outputting that sum. The input integers are each less than 100 and the sum is initially 0.

If the input is:

50 50

Then the output is: 100

If the input is: 20 30 40 9 26

Then the output is: 125

#include

using namespace std;

int main() {

(c++ please.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!