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

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

Or sign up using:

Already have an account?