Here is a number machine.
Find the output when the input is 12
Find the input when the output is 0
84 exam-style questions on OCR GCSE Maths Function Machines. Each one has a worked solution and a mark scheme showing where the marks go.