To write a program to accept marks of three subjects and find the total mark and average marks in 3 subject
Answers
Answered by
1
Answer:
a = int(input("Enter the marks of first subject: "))
b = int(input("Enter the marks of second subject: "))
c = int(input("Enter the marks of third subject: "))
total = a+b+c
avg = total/3
print("Total marks: ",total)
print("Average marks: ",avg)
Attachments:
Similar questions