POJ 1004 Financial Management

题目:http://poj.org/problem?id=1004

水题

#include <iostream>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <cstdlib>

using namespace std;

int main()
{
    float total=0;
    for(int i=0;i<12;i++)
    {
        float t;
        cin>>t;
        total+=t;
    }
    printf("$%.2f",total/12.0);
    return 0;
}

 

posted @ 2013-01-30 23:58  Daniel Qiu  阅读(100)  评论(0编辑  收藏  举报