Financial Management(1004)
#include <iostream>
#include <vector>
using namespace std;
void main()
{
int i;
int month=12;
double mean=0;
double num;
vector<double> vect;
vector<double>::iterator vit;
for (i=0;i<month;i++)
{
cin>>num;
vect.push_back(num);
}
for (vit=vect.begin();vit!=vect.end();vit++)
{
mean+=*vit;
}
mean/=month;
cout<<'$'<<mean<<endl;
}