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:fenglx at 2006-11-29 20:40:37 > 我是新手,刚编了一个小程序,有错误,麻烦大家帮我看看,是1004号题,这是我写的程序: > #include<iostream.h> > void main(){ > float a[12],sum=0.0,aver; > int i; > for(i=0;i<12;i++) > cin>>a[i]>>endl; > for(i=0;i<12;i++) > sum+=a[i]; > aver=sum/12.0; > cout<<"$"<<aver<<endl; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator