| ||||||||||
| 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 | |||||||||
为什么总是compile error?紧急求救!!!!!#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