import java.util.Scanner;
public class ScoreList{
public static void main(String []args){
Scanner sc=new Scanner(System.in);
System.out.print("请输入分数:");
double score=sc.nextDouble();
if(score>=90.0)
System.out.println("得A");
else if(score>=80.0&&score<90.0)
System.out.println("得B");
else if(score>=70.0&&score<80.0)
System.out.println("得C");
else if(score>=60.0&&score<70.0)
System.out.println("得D");
else
System.out.println("不及格");
}
}
posted on 2009-03-26 09:29
鹏凌 阅读(104)
评论(0) 编辑 收藏