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)
{
Sum = sum + num;
Cin >> num;
}
Cout << sum << endl;
A) 92
B) 109
C) 110
D) 119
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q1: Which executes first in a do...while loop?<br>A)
Q13: A loop that continues to execute endlessly
Q15: A do...while loop is a(n)_ loop,since the
Q16: The for loop body executes indefinitely if
Q16: What executes immediately after a continue statement
Q19: What is the output of the
Q21: The _ loop has an exit condition
Q22: Assume all variables are properly declared.The
Q30: A semicolon at the end of the
Q36: Which of the following is a repetition