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> int main(void) { float a,b,c,j,i=0; for(j=0;;j++) { scanf("%f %f %f",&a,&b,&c); if(a==0.0&&b==0.0&&c==0.0) break; if(a<=4.5&&b>=150.0&&c>=200.0) { printf("Wide Receiver "); i++; } if(a<=6.0&&b>=300.0&&c>=500.0) { printf("Lineman "); i++; } if(a<=5.0&&b>=200.0&&c>=300.0) { printf("Quarterback "); } i++; if(i==0) { printf("No positions "); } printf("\n"); } return(0); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator