Nyoj-score Conversion

Source: Internet
Author: User

Score conversion time limit: 1000 MS | memory limit: 65535 KB difficulty: 1
Description
Compile a program for determining the Student Score level. The function of this program is to judge a score (integer). If the number is greater than or equal to 90, output A. If the number is greater than or equal to 80, output B, if the value is greater than or equal to 70, C is output. If the value is greater than or equal to 60, D is output. If the value is smaller than 60, e is output.
Input
There are multiple groups of test data, ending with EOF.
Enter a score U (0 <= u <= 100) for each group ).
Output
Each group of data outputs a row, that is, the corresponding level of the Student Score. (A or B or C or D or E)
Sample Input
100
Sample output
A
# Include <stdio. h> int main () {int N; while (~ Scanf ("% d", & N) {n = N/10; If (n <6) printf ("e \ n"); else if (n <7) printf ("d \ n"); else if (n <8) printf ("C \ n"); else if (n <9) printf ("B \ n"); elseprintf ("A \ n");} return 0 ;}


Nyoj-score Conversion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.