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:谁能帮忙看看1005题的程序错哪了?

Posted by sspp at 2004-11-15 23:39:54
In Reply To:谁能帮忙看看1005题的程序错哪了? Posted by:19851119 at 2004-11-15 19:13:45
> #include<stdio.h>
> #include<math.h>
> void main()
> {
> float a,b,pi=3.1415926,r;
> int y,no=1;
> scanf("%f %f\n",&a,&b);
> if(a>0)-------------------->while(a>0)
> {
>  r=a*a+b*b;
>  y=ceil(r*pi/50);
> printf("Property %d:This property will begin eroding in year %d\n",no,y);
> scanf("%f %f\n",&a,&b);
> no++;
> }
> printf("END OF OUTPUT.");
> }

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