2019-11-29
1005 要认真审题 读明白题意 知道题目是干嘛的
#include <stdio.h>
#include <stdlib.h>
int main()
{
int n;
double x,y,s,pi=3.141592654;
int year,i=0;
scanf("%d",&n);
while(n--)
{
i++;
scanf("%lf%lf",&x,&y);
s=0.5*pi*(x*x+y*y);
year=(int)s/50;
printf("Property %d: This property will begin eroding in year %d.\n",i,year+1);
}
printf("END OF OUTPUT.");
return 0;
}
原文:https://www.cnblogs.com/calm-blogme/p/11966994.html