Learn
average()
Instructions
1.
Write a function average()
that takes:
- A
double
parameter namednum1
. - A
double
parameter namednum2
.
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.