Computer Science, asked by tarun6450, 11 months ago

write a program to store marks of 5 subjects in an array and then calculate the average of marks​

Answers

Answered by divjot56gamer
1

Answer:

IN CONTEXT WITH PYTHON

subject_1 = float(input("Enter your marks in sst -> "))

subject_2 = float(input("Enter your marks in english -> "))

subject_3 = float(input("Enter your marks in science -> "))

subject_4 = float(input("Enter your marks in hindi -> "))

subject_5 = float(input("Enter your marks in maths -> "))

print("your average marks are", (subject_1+subject_2+subject_3+subject_4+subject_5)/5))

HOPE YOU LIKE IT

Similar questions