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

为什么一直是编译错误啊????请高手给看看啊

Posted by hellozhangmeng at 2009-03-23 16:54:53 on Problem 1003 and last updated at 2009-03-24 21:20:09
#include<stdio.h>
int main()
{
     float length;
     float in;
     int num=0;
     
     
     while(scanf("%f",&in))
     {
         if(in==0.00) break;
         int count=0;
         float sum=0.00;
         for(count=1;count<1000;count++)
         {
           sum=sum+1.00/(count+1);  
           
           if(sum>=in)break;          
         }                  
          printf("%d card(s)\n",count);
     }
     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