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 |
帮忙看看吧!为什么不对啊?真郁闷呐!!!#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