Write a program in python to read marks of five different subject and find out the total and average.
Answers
Answered by
0
Answer:
math = int(input("Enter the marks obtained: "))
english = int(input("Enter the marks obtained: "))
physics = int(input("Enter the marks obtained: "))
chemistry = int(input("Enter the marks obtained: "))
computer = int(input("Enter the marks obtained: "))
total = math + english + chemistry + physics + computer
average = total / 5.0
print(total)
print(average)
Similar questions
Accountancy,
5 months ago
English,
5 months ago
CBSE BOARD XII,
5 months ago
Math,
10 months ago
Physics,
10 months ago
Math,
1 year ago