Computer Science, asked by leher5115, 4 months ago

Write a program to input percentage
marks for a student and print grade
according to the table given below.
Marks (%) Grade
<40 "Grade D"
>=40%(BUT<60%) "Grade C"
>=60%(BUT<80%) "Grade B"
>=80% "Grade A"

Answers

Answered by Anonymous
5

Explanation:

Runtime Test Cases

Case 1:

Enter marks of the first subject: 85

Enter marks of the second subject: 95

Enter marks of the third subject: 99

Enter marks of the fourth subject: 93

Enter marks of the fifth subject: 100

Grade: A

Case 2:

Enter marks of the first subject: 81

Enter marks of the second subject: 72

Enter marks of the third subject: 94

Enter marks of the fourth subject: 85

Enter marks of the fifth subject: 80

Grade: B

Hope you have satisfied with this answer.So please follow me and thank me and make me as brainliest soon and vote my answer.

Similar questions