public class 五级制 {标签:JAVA,实现,System,else,println,五级,成绩,out From: https://www.cnblogs.com/txa2003/p/16953920.html
public static void main(String[] args) {
System.out.println("请输入你的成绩");
Scanner s1 = new Scanner(System.in);
int a = s1.nextInt();
if (a>=90&a<=100){
System.out.println("您的成绩为优秀");
}else if(a>=80&a<100){
System.out.println("您的成绩为良好");
}else if(a>=70&a<100){
System.out.println("您的成绩为还行");
}else if(a>=60&a<100){
System.out.println("您的成绩为及格");
}else if(a<60){
System.out.println("您的成绩为不及格");
}
else
{
System.out.println("无效成绩");
}
}
}