y = 2, z = y, y = 6

Check the final answer first, then review the worked steps.

Answer

\(y = 6, z = 2\)

Work

y = 2; z = 2; y = 6

Step-by-step solution

  1. Start with $y = 2$.
  2. Assign the current value of $y$ to $z$, so $z$ becomes $2$.
  3. Update $y$ to $6$. The value of $z$ remains unchanged at $2$.