Learn

average()

Instructions

1.

Write a function average() that takes:

  • A double parameter named num1.
  • A double parameter named num2.

The function should return a double that is the average of the arguments passed in.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Already have an account?