| ||||||||||
| 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 | |||||||||
presentation error?格式应该没错吧?#include <stdio.h>
int main()
{
int n;
double c,sum;
scanf("%lf",&c);
while(c)
{
sum=0;
for(n=1;sum<c;n++)
sum+=1.0/(n+1.0);
printf("%d card(s)",n-1);
scanf("%lf",&c);
}
return 0;
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator