1069745273


私信TA

用户名:1069745273

访问量:6167

签 名:

Just do IT.

等  级
排  名 258
经  验 5862
参赛次数 3
文章发表 166
年  龄 0
在职情况 待业
学  校
专  业 计算机科学与技术

  自我简介:

import java.io.*;

/*
* if 语句基础题
* */

public class Main {
    public static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    public static BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out));
    public static StreamTokenizer cin = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
    public static PrintWriter cout = new PrintWriter(new OutputStreamWriter(System.out));

    public static void main(String[] args) throws Exception {
        cin.nextToken();
        int x = (int) cin.nval;
        if (x >= 90) {
            cout.println("A");
        } else if (x >= 80 && x < 90) {
            cout.println("B");
        } else if (x >= 70 && x < 80) {
            cout.println("C");
        } else if (x >= 60 && x < 70) {
            cout.println("D");
        } else {
            cout.println("E");
        }
        cout.flush();
    }
}


 

0.0分

0 人评分

  评论区

  • «
  • »