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: 帮忙看一下怎么错了 怎么提交了n次都错了In Reply To: 帮忙看一下怎么错了 怎么提交了n次都错了 Posted by:fantasyorg at 2007-06-02 13:49:15 > #include<iostream> > #include<iomanip> > using namespace std; > > void main() > { > double a, total = 0; > for (int i = 1; i <= 12; i++) > { > cin >> a; > total += a; > } > //cout << '$' << setprecision(2) << total/ 100 << endl; > cout << "$" << setprecision(2) << total/ 100 << endl; > } > > Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator