| ||||||||||
| 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 | |||||||||
为什么一直是编译错误啊????请高手给看看啊#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