Programming (Year 12)

Define a function in programming.

A function is a reusable block of code that performs a specific task and can be called with parameters to operate on input data.