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 |
< speed > < weight > < strength > Each number will be a real-valued number.In Reply To:帮忙看看吧!为什么不对啊?真郁闷呐!!! Posted by:90401307 at 2004-12-22 09:50:55 > #include<stdio.h> > void main(){ > float v; > int w,h; > scanf("%f%d%d",&v,&w,&h); > while(v!=0||w!=0||h!=0){ > if(v<=4.5&&w>=150&&h>=200){ > printf("Wide Receiver "); > if(w>=200&&h>=300) > printf("Quarterback "); > if(w>=300&&h>=500) > printf("Lineman "); > else printf("\n"); > } > else if(v<=5.0&&w>=200&&h>=300){ > printf("Quarterback "); > if(w>=300&&h>=500) > printf("Lineman "); > else printf("\n"); > } > else if(v<=6.0&&w>=300&&h>=500){ > printf("Lineman"); > printf("\n"); > } > else printf("No positions\n"); > scanf("%f%d%d",&v,&w,&h); > } > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator