POJ-1004

来源:http://poj.org/problem?id=1004

唉,还有什么好说的,如此水题都让我等遇上了

#include <cstdio>
using namespace std;

int main()
{
    double sum=0.0,x;
    for (int i=1;i<=12;i++)
    {
        scanf("%lf",&x);
        sum+=x;
    }
    printf("$%.2lf\n",sum/12.0);
    return 0;
}
posted @ 2012-12-12 08:58  ay27  阅读(92)  评论(0)    收藏  举报