Work out the output of this function machine: 4 -> +8 -> /2 -> ?

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

Answer

6

Work

  1. + 8 = 12
  2. / 2 = 6

Step-by-step solution

  1. Start with the input number: $4$.
  2. Apply the first operation ($+ 8$): $4 + 8 = 12$.
  3. Apply the second operation ($\div 2$): $12 \div 2 = 6$.