#include<iostream>
using namespace std;
// compute will the average of three numbers
float average(float a, float b, float c);
int main()
{
float a,b,c;
// Get three inputs
cout << "Enter three numbers: ";
cin >> a >> b >> c;
// Report average
cout << "The average is " << average(a,b,c) << endl;
return 0;
}
// compute the average of three inputs
float average(float a, float b, float c)
{
return (a+b+c)/3;
}