| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
Re:谁能帮忙看看1005题的程序错哪了?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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator