Question: Python val = Get next input x x x While val is not - 1 YYY val = Get next input Put sum to output

Python
val = Get next input
xxx
While val is not -1
YYY
val = Get next input
Put sum to output
For the given pseudocode, which xxx and YYY will output the sum of the input integers (stopping when -1 is input)? Choices are in the form XXX / YYY.
sum = val / sum = val
sum =val / sum = sum +val
sum =0/ sum = sum + val
sum =0/ sum = val
 Python val = Get next input xxx While val is not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!