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 |
Re:我晕了,找了好多遍不知道哪错,帮看看,谢谢In Reply To:我晕了,找了好多遍不知道哪错,帮看看,谢谢 Posted by:omepu at 2006-01-04 16:16:35 这样子? > > #include <iostream> > using namespace std; > > int main() > { > double sumn = 0 , month; > int i = 1; > while (i <= 13) > { > cin >> month; > sumn = sumn + month; > ++i; > } > sumn = sumn / i; > printf("$%.2f\n" , sumn); > return 0; > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator