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:1004应该可以这样In Reply To:1004老是说编译错误,我晕了。。 Posted by:hepeng at 2007-03-11 21:04:24 > #include<stdio.h> > main() > {float month[12]; > int i; > float total=0; > for(i=0;i<12;i++) > {scanf("%f",&month[i]); > total+=month[i]; > } > total/=12.00; > printf("$%.2f",(long)((total+0.005)*100)/100.00); > } > 可以试一下,我试了可以成功 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator