Computer Science, asked by smartykabirrrr444, 1 day ago

Write a program to input marks in three subjects and calculate the average. Display 'Good performance' if average is 75 and above and ' Work harder if average is below 75. this is python question

Answers

Answered by NotThareesh
1

Answer:

mark_1 = float(input("Enter your mark in 1st subject: "))

mark_2 = float(input("Enter your mark in 2nd subject: "))

mark_3 = float(input("Enter your mark in 3rd subject: "))

average = (mark_1+mark_2+mark_3)/3

print(f"Your average is {average:.2f}")

if average >= 75:

   print("Good Performance")

else:

   print("Work Harder")

Similar questions