#include <iostream>
usingnamespace std;
int average (double,double,double);
int main ()
{
//Write a function that takes in three integer parameters and returns their decimal average. (How does this differ from the previous problem?)
double int1, int2, int3;
cout << "Please enter three integers. \t";
cin >> int1 >> int2 >> int3;
cout << "\nThe Average is " << average << endl;
return 0;
}
int average (double input1, double input2, double input3)
{
double total;
total = (input1 +input2 + input3) / 3.0;
return total;
}