Trace the following algorithm. The book presents two ways to do tracing–a short form and a long form. To give you a head start, the setup for the short form and also the long form are given below. For your answer, pick one setup and use it. Skip the other setup.
1 y ← 02 input x3 while x ≠ y4 {5 y ← value of x6 input x7 x ← x + y8 print “x = ” + x9 print “y = ” + y10 }Short-from setup:
Input
x
y
output
2
3
4
0
Long-from setup:
input
2
3
4
0
line#
x
y
output
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.