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

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

Answer: C

Computer Science & Information Technology

You might also like to view...

Discuss the difference between linear and non-linear relational algebra trees. Give examples to illustrate your answer.

What will be an ideal response?

Computer Science & Information Technology

The label attribute associates the label with the id value in the input element.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology