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 |
WA了,自己的编译器无错误提示,求大牛指点orz#include <stdio.h> #define PI 3.14159 main() { float x,y,r; double R; unsigned short n,year; scanf("%hd",&n); while(n) { scanf("%f %f",&x,&y); r=x*x+y*y; for(R=0,year=0;R<r;year++) R=100/PI+R; printf("Property %hd: This property will begin eroding in year %hd.\n",n,year); n--; } printf("END OF OUTPUT."); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator