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
Q22: A semicolon at the end of the
Q29: _ loops are called posttest loops.
A) break
B)
Q30: A for loop is typically called a
Q31: Which of the following loops is guaranteed
Q34: The function srand takes as input a(n)_
Q36: What is the initial statement in
Q37: What is the output of the
Q37: Which executes first in a do...while loop?
A)
Q38: What is the output of the
Q40: What executes immediately after a continue statement
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents