Solved

Suppose Sum,num,and J Are Int Variables,and the Input Is 4 \quad

Question 46

Multiple Choice

Suppose sum,num,and j are int variables,and the input is 4 7 12 9 -1.What is the output of the following code?
cin >> sum;
Cin >> num;
For (j = 1; j <= 3; j++)
{
\quad Cin >> num;
\quad Sum = sum + num;
}
Cout << sum << endl;


A) 24
B) 25
C) 41
D) 42

Correct Answer:

verifed

Verified

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

Related Questions