C++: Programming Problem - Average 3 Numbers

Name: _________________________________

Write a function named average3 which returns the average of its three floating-point parameters. As always, use good indentation. You do not need to write the main program. Write only the function.

For example,

    cout << average3(7, 2, 6);

This would print 5.0, which is (7+2+6)/3.