11570 - 231001_10/2_practice3-1   

Description

Calculate average n of five subjects Chinese, English, Math, Technology and Biology, and grade the according to given conditions:

If average >= 90: Grade = A+

If average >= 80: Grade = A

If average >= 70: Grade = B

If average >= 60: Grade = C

If average >= 50: Grade = D

If average < 50: Grade = E

Input

  • Five integers (  int )

  • Use space to separate each integers.

Output

  • A decimal (  float ) round off to the two decimal place(四捨五入至小數點第二位) of average n and the grade of average

  • Put “\n” after each result, and there are spaces before and after “=”.

  • Download the sample to check the format.

Sample Input  Download

Sample Output  Download

Tags




Discuss