Answer
Four assignment statements are needed, one for each of the variables and a temporary assignment to get started so that we do not lose one of the original values.
Check the steps for solution.
Work Step by Step
The algorithm replaces the triple (x,y,z) with (y,z,x) using the following set of assignment statements:
temp := x
x := y
y := z
z := temp