Suppose that the input is 25 36 18 16 -1. What is the output of the following code?
int num;
int sum;
cin >> num;
sum = num;
while (num != -1)
{
sum = sum + num;
cin >> num;
}
cout << "Sum = " << sum << endl;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.