write a program to store the name of a student and his marks in mathematics and computer. calculate the total marks and the average marks. print the name, total and average. in blue j
Answers
Answered by
0
Answer: 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;. Carefully notice I have divided sum with 5.0, instead of 5 to avoid integer division. On the basis of per find grade of the student. Check if(per >= 90) then, print "Grade A".
Explanation:
Similar questions