POJ - 1004

#include<iostream>
using namespace std;
int main(){
    double sum = 0, money = 0;
    for (int i = 0; i < 12; i++){
        cin >> money;
        sum += money;
    }
    printf("$%.2lf\n",sum / 12);
    return 0;
}
View Code

posted @ 2013-10-19 18:05  Acmen  阅读(193)  评论(0编辑  收藏  举报