Question: 18. (35 points) In the box to the right, write the output of the follwing block of code when the user types the following input:

18. (35 points) In the box to the right, write the output of the follwing block of code when the user types the following input: 2, 5, 7, 0,- int xi int sum ,, 0; int n 0; while (cin >> x x >-0) n++i cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
