第十一天

public class Example3_3 {

   public static void main (String argn[ ]) {

      int math = 65,english = 85;

      if(math>=60) {

         System.out.println("数学及格了");

      }

      else {

         System.out.println("数学不及格");

      }

      if(english>=90) {

      System.out.println("英语是优");

      }

      else {

         System.out.println("英语不是优");

      }

      System.out.printin("我在学习if-else语句");

   }

}

猜你喜欢

转载自blog.csdn.net/sutiesenn/article/details/80200893