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

要算11个月才通过?什么意思?

Posted by spren at 2010-05-18 04:10:38 on Problem 1004
#include <stdio.h>

int main()
{
        int i=0;
        float tol=0.00;
        //int tol=0;
        do{
                float in;
                scanf("%f", &in);
                tol += in;
        }while(i++<11);
        printf("$%.2f\n", tol/12);
        return 0;
}

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