Write a program to assign 4 subject‟s marks 80, 90, 75, 85 in variable a, b, c
and d of int type. Calculate total marks and percentage. The maximum marks in
each subject is 100. Print Total Marks and Percentage.
Answers
Answered by
4
A=80(marks scored)
to find the percentage is just like finding the percentage of loss or profit
percentage=no of marks/total marks×100
=80/100×100
=80% is the percentage of A
B=90(marks scored)
percentage=number of marks / total marks×100
=90/100×100
=90% is the percentage of B
C=75(marks scored)
percentage=number of marks / total marks×100
=75/100×100
=75% is the percentage of c
D=85(marks scored)
percentage=number of marks / total marks×100
=85/100×100
85% is the percentage of D
Similar questions