OCR GCSE Computer Science · J277
Paper 2
Revise: Using SubprogramsA function returns a value to its caller. It is useful when the calling code needs a result to store, compare or use in another calculation. For example, an area calculation should be a function if its result will be used later.