Examlex

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;


Definitions:

Electronic Equipment

This term refers to devices that use electrical energy to perform a variety of functions, such as computing, telecommunication, or entertainment.

Telephone Messages

Written or electronic notes taken to record information from a telephone conversation when the intended recipient is unavailable.

Peripheral

Relating to or situated on the edge or periphery of something; in computer terms, it refers to devices connected to a computer system externally.

Plug Into

To connect or become involved with something or someone in a direct or significant way.

Related Questions