poj1005题,提交出现Compile Error,求指教
#include<stdio.h>#include<math.h>#definePI3.1415intmain(){intn,i,z;doublex,y;scanf("%...
#include<stdio.h>
#include<math.h>
# define PI 3.1415
int main()
{
int n, i, z;
double x, y;
scanf("%d", &n);
for(i = 1; i <= n; i++)
{
z = 0;
scanf("%lf%lf", &x, &y);
z = int(PI * (x * x + y * y) / 100) + 1;
printf("Property %d: This property will begin eroding in year %d.\n", i, z);
}
printf("END OF OUTPUT.\n");
return 0;
} 展开
#include<math.h>
# define PI 3.1415
int main()
{
int n, i, z;
double x, y;
scanf("%d", &n);
for(i = 1; i <= n; i++)
{
z = 0;
scanf("%lf%lf", &x, &y);
z = int(PI * (x * x + y * y) / 100) + 1;
printf("Property %d: This property will begin eroding in year %d.\n", i, z);
}
printf("END OF OUTPUT.\n");
return 0;
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询