-->
当前位置:首页 > 题库

PROGRAMMING:C programming experiment 2-2-2

Luz5年前 (2021-05-10)题库443
With the switch statement programming, according to the input hundred score (integer), converted to the corresponding five score grade output.
When 90 ≤ score ≤ 100, grade = a;
When 80 ≤ score < 90, grade = B;
When 70 ≤ score < 80, grade = C;
When 60 ≤ score < 70, grade = D;
When 0 ≤ score < 60, grade = E.
If score < 0 or score > 100 is input, "input error!" is output.
###Input format:
Enter a percentage score (integer).
###Output format:
Output corresponding level. When the input score is unreasonable, the prompt message "input error!" will be output.
###Input example:
```in
eighty-five
```
###Output example:
```out
B
```
###Input example:
```in
one hundred and twenty
```
###Output example:
```out
Input error!
```







answer:If there is no answer, please comment