water~4

poj1004 http://poj.org/problem?id=1004
super water
#include <iostream>
using namespace std;

int main()
{
	double ans=0;

	for(int i=0;i<12;i++)
	{
		double temp;
		cin>>temp;
		ans+=temp;		
	}
	ans/=12;

	cout.setf(ios_base::fixed);
	cout.setf(ios_base::showpoint);
	cout.precision(2);

	cout<<"$"<<ans<<endl;
	return 0;
}

你可能感兴趣的:(water)