| ||||||||||
| 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 | |||||||||
没学过C的?In Reply To:为什么总是compile error?紧急求救!!!!! Posted by:IC0590501535 at 2005-11-17 22:58:44 > #include <stdio.h>
> #include <math.h>
> void main(){
> float c;
> scanf("%f\n",&c);
> int i;
> for(i=1;;){
> float b=1/(i+1);
> float sum=0;
> b=b+sum;
> i++;
> if(b>c)break;
> printf("%d card(s)\n",i);
> }
> }
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator