import java.util.Scanner;
public class GradeIf{
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级");
}
}
}
03-19
07-03
07-03
07-03
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交