class IfElseExer4{
public static void main(String[] args) {
System.out.println("小妹的期末JAVA成绩是:【0-100】");
int score=89;
if (score<0||score>100){
System.out.println("你的成绩是错误的");
}else if (score>=90&&score<=100){
System.out.println("你的成绩属于优秀");
}else if (score>=80&&score<90){
System.out.println("你的成绩属于好");
}else if(score>=70&&score<80){
System.out.println("你的成绩属于良");
}else if(score>=60&&score<70){
System.out.println("你的成绩属于及格");
}else {
System.out.println("你的成绩属于不及格");
}
}
}
05-21
975
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-15
450
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-17
5577
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-17
6854
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交