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

Re:求助!那位好心人帮忙看看这段程序那里出错了

Posted by Trojan at 2006-05-24 23:46:56 on Problem 1003
In Reply To:Re:求助!那位好心人帮忙看看这段程序那里出错了 Posted by:Trojan at 2006-05-24 23:45:47
> #include <stdio.h>
> void main(){
> int number,c;
> float length,sum;
> scanf("%f",&length);
> while(length!=0.0){sum=0.0;
> if(length<=5.20&&length>=0.01)
> {for(c=2;length>sum;sum=sum+(1.0/c),c++);
>  number=c-2;
>  printf("%d card(s)\n",number);
> }
> scanf("%f",&length);
> }
> }

注意条件

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