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