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++)
{
Sum = sum + num;
Cin >> num;
}
Cout << sum << endl;
A) 124
B) 125
C) 126
D) 127
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: The number of iterations of a counter-controlled
Q20: What is the next Fibonacci number in
Q29: The statement in the body of a
Q31: A(n) _-controlled while loop uses a bool
Q35: The _ statement can be used to
Q36: What is the output of the
Q37: If a(n)_ statement is placed in a
Q39: In a(n)"_" problem,either the loop executes one
Q42: What is the value of x after
Q46: Suppose sum,num,and j are int variables,and