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:请大家帮看看我这人怎么过不了啊,郁闷!! Posted by:zerotext at 2005-05-13 13:55:14 > #include<stdio.h> > #include<math.h> > main() > {int n,j,i,; > float r,a,b,temp; > scanf("%d",&n); > for(i=1;i<=n;) > {while(scanf("%f%f",&a,&b)==2) > {if(a>b) > temp=a; > else > temp=b;好象少了r=0; > for(j=1;r<temp;j++) > r=sqrt(50*j*2/3.1415); > printf("Property %d: This property will begin eroding in year %d.\n",i,j-1); > i++; > break; > } > } > 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