write the program which that accept marks 5 subject and display average marks in python
Answers
Answered by
1
Answer:
m1 = int(input("Enter marks in 1st subject: "))
m2 = int(input("Enter marks in 2nd subject: "))
m3 = int(input("Enter marks in 3rd subject: "))
m4 = int(input("Enter marks in 4th subject: "))
m5 = int(input("Enter marks in 5th subject: "))
avg = (m1 + m2 + m3 + m4 + m5)/5.0
print("Average marks:", avg)
Answered by
3
- Write a program in python to accept marks of 5 subjects and display average marks.
a=int(input("Enter the first number: "))
b=int (input("Enter the second number: "))
c=int(input ("Enter the third number: "))
d=int(input("Enter the fourth number: "))
e=int(input("Enter the fifth number: "))
avg=(a+b+c+d+e)/5.0
print("Average Marks is: ",avg)
Similar questions