Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
This is easy#include "iostream" using namespace std; int main(){ double a; double sum; int num=12; int now = 0; while(cin>>a && now<num){ sum+=a; now++; } cout<<'$'<<(sum/12.0)<<endl; return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator