public class main {
public static void main(String[] args) {
Scanner like = new Scanner(System.in);
int score = like.nextInt();
String cj;
if (score > 100) {
System.out.println("你的成绩错误");
switch (score / 10) {
case 10:
case 9:
System.out.println("你的成绩为优秀");
break;
case 8:
System.out.println("你的成绩为良好");
break;
case 7:
System.out.println("你的成绩为一般");
break;
case 6:
System.out.println("你的成绩为及格");
break;
}
else {System.out.println("你成绩为不合格");}
}
}
}
新手学java怎么解决啊,提示没有else