Poj Solution 1004

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


#include <iostream>
using namespace std;
int main(){
    double d,t;
    while(cin>>d){
     t+=d;
    }
    cout<<"$"<<t/12;
    return 0;
}

											
This entry was posted in poj. Bookmark the permalink.