Question: For C++ Suppose sum, num, and j are int variables, and the input 4 7 12 9 -1. What is the output of the following
For C++
Suppose sum, num, and j are int variables, and the input 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
