Trace the following algorithm. The book presents two ways to do tracinga short form and a long

Question:

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 x 0 2 input y 3 while x # y 4 { 5 6 7 8 9 10 } Short-form setup: input xy output 3 2 1 0 x+y input y y+x+y

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: