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 人评分
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)浏览:1517 |
C语言程序设计教程(第三版)课后习题7.4 (Java代码)浏览:873 |
C语言程序设计教程(第三版)课后习题5.7 (C++代码)浏览:879 |
不容易系列 (C语言代码)浏览:702 |
C语言程序设计教程(第三版)课后习题10.4 (C语言代码)浏览:943 |
C语言程序设计教程(第三版)课后习题11.1 (C语言代码)浏览:651 |
C语言程序设计教程(第三版)课后习题5.6 (C语言代码)浏览:594 |
图形输出 (C语言代码)浏览:1422 |
找出最长的字符串来 (C语言代码)浏览:1840 |
C语言程序设计教程(第三版)课后习题8.3 (C语言代码)浏览:465 |