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:菜鸟求问:怎么会出现演示错误呀presentation error急呀!!!In Reply To:菜鸟求问:怎么会出现演示错误呀presentation error急呀!!! Posted by:2008550115 at 2010-04-02 00:13:50 > #include<stdio.h> > #include<math.h> > #define pi acos(-1) > > int main() > { > int n,i; > float x,y; > double area; > > scanf("%d",&n); > for(i=1;i<=n;i++) > { > scanf("%f %f",&x,&y); > area=pi*(x*x+y*y); > printf("Property %d:This property will begin eroding in year%d.\n",i,(int)area/100+1); > } > printf("END OF OUTPUT.\n"); > return 0; > } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator