"C language" requires the output of percentile score segments according to the grade of test scores

Source: Internet
Author: User
Requirements in accordance with the grade of test scores output percentile fraction, a and so on more than 85, B, such as 70~84,//C, such as 60~69, D, etc. for the following 60 points. grade level by keyboard Input # include <stdio.h>int main () {char ch;printf ("Please enter Grade:"), scanf ("%c", &ch), switch (CH) {case ' A ': printf ("Fractional segment: 85 + \"), Break;case ' B ':p rintf ("Fractional segment: 70~84"), Break;case ' C ':p rintf ("Fractional segment: 60~69"); Break;case ' D ':p rintf ("Fractional segment is: 60 points below \ n"); break;default:break;} return 0;}



"C language" requires the output of percentile score segments according to the grade of test scores

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.