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:那位牛人能帮我看看这题错在哪了,总是wrong answer呀!快疯了!!!In Reply To:Re:那位牛人能帮我看看这题错在哪了,总是wrong answer呀!快疯了!!! Posted by:jean890915 at 2011-10-04 17:18:30 > #include "iostream" > using namespace std; > > int main(void) > { > int i; > float a,sum; > while (1) > { > sum = 0; > for (i=0;i<12;i++) > { > cin>>a; > sum+=a; > } > sum = sum/12; > printf("$%.2f\n",sum); > } > return 0; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator