Suppose that the input is 3 5 7 -6 10. What is the output of the following code?
int temp = 0;
int num;
int count;
cin >> temp;
for (count = 0; count <= 3; count++)
{
cout << temp << " ";
cin >> num;
temp = temp + num * (count - 1);
}
cout << 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.