| ||||||||||
| 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 | |||||||||
这个程序挺简单的,为什么过不了呢?#include<stdio.h>
#include<math.h>
#define PAI 3.1415
main()
{
float a,b,s;int n,i=1,x;
scanf("%d",&n);
while(n>0)
{
scanf("%f %f",&a,&b);
s=PAI*(a*a+b*b)/2.0;
x=s/50;
printf("Property %d: This property will begin eroding in year d\n",i,x+1);
n--;
i++;
}
printf("END OF OUTPUT.\n");
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator