WAP in python to find the percentag of marks of marks of 5 subject given by the user.
Answers
Answered by
3
Answer:
Refer the picture.
Explanation:
Refer the attached photo.
Attachments:
Answered by
3
here it is
______________
n1=int(input("please write marks obtained by candidate in first subject"))
n2=int(input("please write marks obtained by candidate in second subject"))
n3=int(input("please write marks obtained by candidate in third subject"))
n4=int(input("please write marks obtained by candidate in fourth subject"))
n5=int(input("please write marks obtained by candidate in fifth subject"))
sum=n1+n2+n3+n4+n5
per=sum/5
#considering sum of marks of all subjects is 500 and it is cancel by 100 so 5 comes in denominator
print("Percentage of the candidate is",per)
_____________________________________________
Similar questions