import java.util.Scanner;
public class Gradelf {
public static void main(String args[]){
while(true){
System.out.println("请输入分数:");
Scanner sc=new Scanner(System.in);
int Score=sc.nextInt();
if(Score>=85)
System.out.println("A级");
else
if(Score>=70)
System.out.println("B级");
else
if(Score>=60)
System.out.println("C级");
else
if(Score<60)
System.out.println("D级");
}
}
}
三天不练手生。所以,很多时候学习还是要依靠练习,依赖一个反复的过程。