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

1003如何修改表达错误(presented error)

Posted by uestclong at 2007-05-25 11:59:05
  谁能解决
#include<stdio.h>
main()
{
int i,t,e;
float j,le[10],sum=0.00; 
i=0;
do
{
scanf("%f",&le[i]);
i++;
}while(le[i-1]!=0);
t=i-1;
for(i=0;i<t;i++)
{
j=1.00;
e=1;
sum=0.00;
do
{sum=sum+1.00/(j+1.00);
j=j+1.00;
e++;
}while(sum<=le[i]);
printf("\n%d card(s)",e-1);
}
}

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