1.

Create a user-defined function to input marks in any three subjects out of 100 and find out the total and percentage. (Percentage= Total marks obtained/Total maximum marks *100)Your answer

Answer»

Answer:

==>> Input

Input marks of five subjects: 95

95

97

98

90

Explanation:

Write a C program to input marks of five subjects Physics, Chemistry, Biology, MATHEMATICS and Computer, calculate PERCENTAGE and grade ACCORDING to given conditions:

If percentage >= 90% : Grade A

If percentage >= 80% : Grade B

If percentage >= 70% : Grade C

If percentage >= 60% : Grade D

If percentage >= 40% : Grade E

If percentage < 40% : Grade F



Discussion

No Comment Found