Write a program to take input of marks of a student in 5 subjects, and then display the total marks and
percentage obtained by the student
Answers
Answered by
3
Explanation:
— Logic to calculate percentage and grade. Input marks of five subjects in some variable say phy , chem , bio , math and comp . Calculate percentage using formula per = (phy + chem + bio + math + comp) / 5.0; . On the basis of per find grade of the student. Check if(per >= 90) then, print "Grade A".
Similar questions