python programming .input marks in 5 subject out of 50 . calculate average and percentage
Answers
Answered by
0
Answer:
1. Read marks of five subjects in some variables say S1, S2, S3, S4 and S5.
2. Apply the formula for finding sum i.e. total = S1 + S2 + S3 + S4 + S5.
3. Apply the formula to find average using above total i.e. average = total / 5.
4. Apply the formula for finding percentage i.e. percentage = (average / 500) * 100.
5. Finally print values of all resultant variables total, average and percentage.
Explanation:
Hope the answer is helpful
Similar questions