- import java.util.Scanner;
- class Sg {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.println("请输入一个分数");
- int x = sc.nextInt();
- if(x >= 90 && x<=100){
- System.out.println("有");
- } else if (x >= 80 && x <= 90 ) {
- System.out.println("liang");
- } else if (x >= 70 && x <= 80) {
- System.out.println("zhong");
- } else if (x >= 60 && x <= 70) {
- System.out.println("jige");
- } else if (x >= 59 && x <= 60) {
- System.out.println("keyi");
- } else {
- System.out.println("meixi");
- }
- }
- }
复制代码 |
|