import java.util.Scanner;
/*编写一段程序,完成百分制到五分制的转换,转换规律:
90-100为5分、80-89为4分、70-79为3分、60-69为2分、0-59为1分。
*/
public class Chart0307 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(“你的成绩是:”);
int score = sc.nextInt();
if (score >= 90 && score <= 100) {
System.out.println(“你的得分是:5分”);
} else if (score >= 80 && score <= 89) {
System.out.println(“你的得分是:4分”);
} else if (score >= 70 && score <= 79) {
System.out.println(“你的得分是:3分”);
} else if (score >= 60 && score <= 69) {
System.out.println(“你的得分是:2分”);
} else if (score >= 0 && score <= 59) {
System.out.println(“你的得分是:1分”);
}
}
}