POJ1004水题

#include<iostream>
using namespace std;
int main()
{ 
    double a,b,s;
    for(b=0;b<12;b++)
    { cin>>a;
      s+=a;
    } 
   cout<<"$"<<s/12<<endl; 
return 0;

}

posted @ 2012-05-03 13:24  菜鸟在努力!!  阅读(138)  评论(0)    收藏  举报