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 > num;
sum = sum + num;}cout
A. 24
B. 25
C. 41
D. 42
Answer: A
Computer Science & Information Technology
You might also like to view...
A security breach has been discovered. You have identified the attack and preserved the affected systems and devices. What is the next step in this investigation?
A. Preservation B. Collection C. Examination D. Identification
Computer Science & Information Technology
What are the responsibilities of the Presentation layer of the OSI model?
What will be an ideal response?
Computer Science & Information Technology