Write a program to input marks in Science, Maths, English and Computer from the user.
Calculate total and average and display it with suitable messages.
language python
Answers
Answered by
4
Answer:
hi...
Explanation:
sm=int(input("enter the marks in science"))
mm=int(input("enter the marks in maths"))
em=int(input("enter the marks in English"))
cm=int(input("enter the marks in computer"))
sum=sm+mm+em+cm
avg=sum/4
print("total marks is",sum)
print("average is",avg)
hope it helps you ☺️
Answered by
1
Explanation:
def total(Science,Math, English,Computer):
Total = Science+Math+English+Computer
Avg = Total/4
return Avg
Science = int(input("Enter marks"))
Math = int(input("Enters marks"))
English = int(input("Enter Marks"))
Computer = int(input("Enter marks"))
Total2 = total(Science,Math,English,Computer)
print('Total2')
Similar questions