| ||||||||||
| 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 | |||||||||
ggg#include <stdio.h>
#include <math.h>
void main(){
float a;
int b,c;
scanf("%f %d %d",&a,&b,&c);
while(a!=0&&b!=0&&c!=0){
if(a<=4.5){
if(b>=150&&c>=200){
printf("Wide Receiver ");
}
if(b>=200&&c>=300){
printf("Quarterback ");
}
if(b>=300&&c>=500){
printf("Lineman ");
}
}
else{
if(a<=5.0){
if(b>=200&&c>=300){
printf("Quarterback ");
}
if(b>=300&&c>=500){
printf("Lineman ");
}
}
else{
if(a<=6.0&&b>=300&&c>=500){
printf("Lineman ");
}
else{
printf("No positions ");
}
}
}
scanf("%f %d %d",&a,&b,&c);
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator