Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

帮忙看一下怎么错了 怎么提交了n次都错了

Posted by fantasyorg at 2007-06-02 13:49:15 on Problem 1004
#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;
}



Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator