小謃謃

小謃謃的笔记

来自java语言教程-09_练习课(二)(0)

public class Test01{  public static void main(String arge[]){    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("成绩不在正常的范围之内");}}}}石头剪子布char play1="a";char play2="b";if(play1= "a" && play2="a"){ System.out.println("打平")}else if(play1="a" && play2="b"){ System.out.println("player1贏")}