y = 9; z = y - 5

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

Answer

\(y = 9, z = 4\)

Work

y = 9
z = 9 - 5 = 4

Step-by-step solution

  1. Identify the first assignment: $y = 9$. This means the variable $y$ now holds the value $9$.
  2. Identify the second assignment: $z = y - 5$. Substitute the current value of $y$ into the expression: $z = 9 - 5$.
  3. Calculate the result: $z = 4$.