#include
#include
#include
#include
using namespace std;
double arithmeticMean(const vector& nums)
{
double sum = accumulate(nums.begin(), nums.end(), 0);
return (sum / nums.size());
}
int product(int num1, int num2)
{
return (num1 * num2);
}
int main(int argc, char** argv)
{
vector myVector;
myVector.push_back(1);
myVector.push_back(2);
myVector.push_back(3);
myVector.push_back(4);
cout << "The arithmetic mean is " << arithmeticMean(myVector) << endl;
return (0);
}