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
Get step-by-step solutions from verified subject matter experts
