| ||||||||||
| 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:为什么一直是编译错误啊????请高手给看看啊In Reply To:为什么一直是编译错误啊????请高手给看看啊 Posted by:hellozhangmeng at 2009-03-23 16:54:53 > #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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator