练习课(二)

Eg1.  public class Ex4{
        public static void main(String args []){
              int score = 90 ;
              if (score > 85 && score <=100){
                         System.out.println("优");
              }
                  else if (score > 75 && score <=85){
                    System.out.println("良");
                }
              else if (score > 60 && score <=75){
                    System.out.println("中");
                }
              else if (score <=60 && score >=0){
                    System.out.println("差");
              }
              else if (score > 100 && score < 0){
                   System.out.println("成绩错误");
              }
        }
        }

原文地址:https://www.cnblogs.com/iMirror/p/3730373.html