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

高手指点,为什么会编译错误?

Posted by narrow at 2008-03-25 16:16:58 on Problem 1003
#include "stdafx.h"


void main()
{
	float a;
    scanf("%f",&a);

	while(a!=0.00)
	{
		int b=0;float i=2.00,c=0.00;
	    while(c<a)
	    {
		   c+=1/i;
		   i++;
		   b++;
	    }
	
       printf("%d card(s)\n",b);
	   scanf("%f",&a);
	}
}

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