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

presentation error!

Posted by erics at 2005-07-21 13:22:52 on Problem 1003
presentation error!是什么意思啊?
#include <stdio.h>
void main()
{
	double n,m;
	int i;
	scanf("%lf",&n);
	m=n;
	while((m!=0.00)&&(m>=0.01)&&(m<=5.20))
	{  
		i=1;
		while((n-1.0/(i+1))>0.00)
		{
		  n=n-1.00/(i+1);i++; 
		}
	    printf("%d  card(s)\n",i);
		scanf("%lf",&n);
		m=n;
	}
     
}

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