1014. write comments, 1014 write comments

Source: Internet
Author: User

1014. write comments, 1014 write comments
1014. write comments (Standard IO) Time Limit: 1000 MS space limit: 262144 KB Specific Limit

Enter a score for a student based on the question description. If the score is greater than or equal to 90, "Excellent" is output. If the score is greater than or equal to 80 and less than 90, "Good" is output. If the score is greater than or equal to 60 and less than 80, the output is "Pass", the score is less than 60, and the output is "Fail ". Enter an integer score to indicate the score of the student. Output comments. Sample Input
65
Sample output
Pass
Data range: 0 <= score <= 100
1 # include <iostream> 2 # include <cmath> 3 # include <cstdio> 4 # include <algorithm> 5 using namespace std; 6 int main () 7 {8 int n; 9 cin> n; 10 if (n> = 90) 11 cout <"Excellent"; 12 else if (n> = 80 & n <90) 13 cout <"Good"; 14 else if (n> = 60 & n <80) 15 cout <"Pass"; 16 else cout <"Fail "; 17 return 0; 18}

 

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.