package sw1;
import java.util.Scanner;
public class sw1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc =new Scanner(System.in);
System.out.println("请输入学生成绩:");
int score=sc.nextInt();
if(score>=0&score<=100)
{
if(score>=90)
System.out.println("A");
if(score>=80&&score<90)
System.out.println("B");
if(score>=60&&score<80)
System.out.println("C");
if(score<60)
System.out.println("D");
}
}
}
import java.util.Scanner;
public class sw1 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc =new Scanner(System.in);
System.out.println("请输入学生成绩:");
int score=sc.nextInt();
if(score>=0&score<=100)
{
if(score>=90)
System.out.println("A");
if(score>=80&&score<90)
System.out.println("B");
if(score>=60&&score<80)
System.out.println("C");
if(score<60)
System.out.println("D");
}
}
}