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

Re:请各位帮我找找错~~拜托!

Posted by zfy at 2008-11-03 19:22:31 on Problem 1003
In Reply To:请各位帮我找找错~~拜托! Posted by:sung at 2007-04-17 21:05:44
> 新手初来报道,请各位指点指点~~
> 在机子上运行时,总是看不到输出~~
> #include <stdio.h>
> void main(){
> 
> 	float c,sum;
> 	int n;
> 
> 	scanf("%f",&c);
> 	while (c >= 0.01 && c <= 5.20)		
> 	{
> 		for (n = 1, sum = 0; sum < c; n++)
> 			{
> 				sum = sum + 1/(n+1);
> 			}
> 
> 		    printf("%d\n",n);
> 		
> 		scanf("%f",&c);
> 
> 	}
> 
> } 

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