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 |
给你我的代码,你随便看看吧,也许对你有帮助。In Reply To:虚心的求教,错在哪里了? Posted by:sunshinelims at 2008-01-12 20:09:02 #include<stdio.h> int main() { double a,b; int t,times=1; scanf("%d",&t); while(t--) { scanf("%lf%lf",&a,&b); printf("Property %d: This property will begin eroding in year %d.\n",times++,(int)(3.14159265*(a*a+b*b)/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