Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

求救,为什么就是交不上,谢谢!!!!!!!!

Posted by 90401306 at 2005-01-06 18:39:23 on Problem 2070
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator