Math, asked by rameshbhangalia408, 6 months ago

Write a program in Java to display the grade of a student based on the following condition:
If marks are greater than 60, the grade is "A", otherwise grade is "B".​

Answers

Answered by gunjan089
1

Step-by-step explanation:

This program calculates the grade of a student based on the marks entered by user in each subject. Program prints the grade based on this logic.

If the average of marks is >= 80 then prints Grade ‘A’

If the average is <80 and >=60 then prints Grade ‘B’

If the average is <60 and >=40 then prints Grade ‘C’

else prints Grade ‘D’

Attachments:
Similar questions