y = 9; z = y - 5
Check the final answer first, then review the worked steps.
Step-by-step solution
- Identify the first assignment: $y = 9$. This means the variable $y$ now holds the value $9$.
- Identify the second assignment: $z = y - 5$. Substitute the current value of $y$ into the expression: $z = 9 - 5$.
- Calculate the result: $z = 4$.