import java.util.*;
public class Test1{
public static void main(String[]args){
Scanner in =new Scanner(System.in);
System.out.println("请输入你的成绩:");
int score =in.nextInt();
if(score>90){
System.out.println("优秀");
}else if(score>=80){
System.out.println("良好");
}else if(score>=60){
System.out.println("中等");
}else{
System.out.println("差");
}
}
}
多重if语句
最新推荐文章于 2024-04-07 12:34:36 发布