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 speed; int weight,strength; scanf("%f%d%d",&speed,&weight,&strength); while(speed!=0&&weight!=0&&strength!=0){ if(speed<=4.5&&weight>=300&&strength>=500) printf("Wide Receiver lineman squarterback\n "); else if(speed<=4.5&&weight>=200&&strength>=300) printf("Wide Receiver Quarterback\n"); else if(speed<=4.5&&weight>=150&&strength>=200) printf("Wide Receiver\n"); else if(speed>4.5&&speed<=5.0&&weight>=300&&strength>=500) printf("Lineman Squarterback \n"); else if(speed>4.5&&speed<=5.0&&weight>=200&&strength>=300) printf("Quarterback\n"); else if(speed>5.0&&speed<=6.0&&weight>=300&&strength>=500) printf("Lineman\n"); else printf("No positions\n"); scanf("%f%d%d",&speed,&weight,&strength); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator