Computer Science, asked by Gopalkrishna60931, 9 months ago

Write a pgm to input 6 subject marks and find the average if the greater than 75 print grade A or else print Grade B

Answers

Answered by Swetha03K
1

m1=int(input("Enter marks of 1st sub:"))

m2=int(input("Enter marks of 2nd sub:"))

m3=int(input("Enter marks of 3rd sub:"))

m4=int(input("Enter marks of 4th sub:"))

m5=int(input("Enter marks of 5th sub:"))

m6=int(input("Enter marks of 6th sub:"))

avg= (m1+m2+m3+m4+m5+m6)/6

print("Average marks=",avg)

if avg>75:

      print("Grade : A")

else:

      print("Grade : B")

Similar questions