Write a program in Python that should take marks obtained by a student in 3 different subjects as input and calculate and displaythe total marks and percentage secured by him in the examination. Consider the maximum marks allotted for each subject as 100.
Answers
Answered by
1
Answer:
sub1=int(input("Enter marks of the first subject: "))
sub2=int(input("Enter marks of the second subject: "))
sub3=int(input("Enter marks of the third subject: "))
sub4=int(input("Enter marks of the fourth subject: "))
sub5=int(input("Enter marks of the fifth subject: "))
avg=(sub1+sub2+sub3+sub4+sub4)/5
if(avg>=90):
print("Grade: A")
elif(avg>=80&avg<90):
print("Grade: B")
elif(avg>=70&avg<80):
print("Grade: C")
elif(avg>=60&avg<70):
print("Grade: D")
else:
print("Grade: F")
hope it helps
if u want any help regarding computer u can take help for me am a comp. scientist mtlcb on a road to that
Explanation:
Similar questions