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

为什么总是compile error?紧急求救!!!!!

Posted by IC0590501535 at 2005-11-17 22:58:44 on Problem 1003
#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:
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