Write a program to input marks in five subjects. Display the total marks and also the average marks.
Answers
Answered by
0
Answer:
good
Explanation:
Answered by
3
Enter the marks of five subjects:-
Maths = 95
Science = 85
Social Studies = 74
Computer = 64
Hindi = 53
The Total marks are: 371.00 / 500.00
The Average marks are: 74.20
The Percentage is: 74.20%
The Grade is: 'C'
You should have the knowledge of the following topics in c programming to understand this program:
C Functions
C main function
C print function
Standard Formula:-
Total = marks1 + marks2 + marks3 + marks4 +marks5
Average = Total / 5.0
Percentage = (Total / 500.0) x 100
Where marks1, marks2, marks3, marks4, and marks5 are the marks of five subjects.
Similar questions