Solved

Suppose J,sum,and Num Are Int Variables,and the Input Is 26 \quad

Question 41

Multiple Choice

Suppose j,sum,and num are int variables,and the input is 26 34 61 4 -1.What is the output of the code?
sum = 0;
Cin >> num;
For (int j = 1; j <= 4; j++)
{
\quad Sum = sum + num;
\quad Cin >> num;
}
Cout << sum << endl;


A) 124
B) 125
C) 126
D) 127

Correct Answer:

verifed

Verified

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

Related Questions