Work out the output of this function machine: -7 -> +4 -> x -6 -> ?

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

Answer

18

Work

$(-7 + 4) \times (-6) = -3 \times -6 = 18$

Step-by-step solution

  1. Start with the input value of $-7$.
  2. Apply the first operation: add $4$ to the input. $-7 + 4 = -3$.
  3. Apply the second operation: multiply the result by $-6$. $-3 \times -6 = 18$.