Solved

Suppose Sum and Num Are Int Variables,and the Input Is \quad

Question 17

Multiple Choice

Suppose sum and num are int variables,and the input is 18 25 61 6 -1.What is the output of the following code?
sum = 0;
Cin >> num;
While (num != -1)
{
\quad Sum = sum + num;
\quad Cin >> num;
}
Cout << sum << endl;


A) 92
B) 109
C) 110
D) 119

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions