Learn
Code Challenge: C++ Functions
Average

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.

Folder Icon

Take this course for free

Already have an account?