| ||||||||||
| 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:这道题的意思是什么啊,小弟英语太差了In Reply To:Re:这道题的意思是什么啊,小弟英语太差了 Posted by:317781250 at 2008-05-29 19:43:44 查了n页字典终于明白
#include "stdio.h"
main()
{int n,i,j,z;
float area,t=3.14,x,y;
scanf("%d",&n);
for(i=0;i<n;i++)
{z=0;
scanf("%f",&x);
scanf("%f",&y);
area=t*(x*x+y*y)/2.0;
while(area>50)
{area=area-50;
z=z+1;
}
printf ("Property %d: This property will begin eroding in year %d.\n",i+1,z+1);}
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