Construct a function that calculates the average of three numbers. The numbers should be passed to the function as parameters.
Construct a function that calculates the average of three numbers. The numbers should be passed to the function as parameters.