Worked example
Writing a number instruction
A machine multiplies an input r by 2 then subtracts 6.
Write the output as an expression in r.
[2]Find the output when r is 6.
[2]
(a) Multiplying gives .
Subtract 6 from that result.
(b) Multiply 6 by 2, then subtract 6.
.