Computer Science, asked by harshgoswami370150, 4 months ago

Read marks of three subjects and find the percentage of it. Also, print the

appropriate class. Here,

If percentage < 40 then class is ‘fail’

If 40 <= percentage < 48 then class is ‘pass’

If 48 <= percentage < 60 then class is ‘second’

Else class is ‘first’.

Answers

Answered by harshkumarprajapati2
0

Answer:

this program is in python

a = int(input("Enter your marks))

n= int(input("Enter total marks))

b= (a/n)*100

if b<40:

print("You are fail")

if b>=40:

print("You are pass")

if b>=48

print(" You are pass ")

if b>=60

print("you are pass with second class ")

if b>=80

print(you are pass with first class")

else :

print(" Your Input is invalid")

Similar questions