| ||||||||||
| 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>
void main (){
int N,i,z[444];
float X,Y;
double s,n;
scanf("%d",&N);
for(i=1;i<=N;i++){
scanf("%f %f",&X,&Y);
if(Y>=0){
if(X!=0||Y!=0){
s=3.14*(X*X+Y*Y)/2;
n=s/50;
z[i]=(int)ceil(n);
}
}
}
for(i=1;i<=N;i++)
printf("Property %d:This property will begin eroding in year %d.\n",i,z[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