Answer
Algorithm 1 when it is given n = 6 as input. That is, show all steps used by Algorithm 1 to finding 6!,
-x+y = 2+3 = 5 to z.
Work Step by Step
--Suppose that y = 3.
-The program segment assigns the value 2 to x and then assigns the value
-- x+y = 2+3 = 5 to z.