DAY 24(CODE INFINITY)

Hey everyone, Today let's see who is pass or fail in exams so for this we write a code in which we provide the passing marks and also it takes input from you and calculate total and compare if it is greater than passing marks or not so Let's get started...

a= int(input("Enter marks of subject: "))

b=int(input("Enter marks of subject: "))

c=int(input("Enter marks of subject: "))

d=a+b+c

e=d/300

f=e*100

if(a>=33 and b>=33 and c>=33 and f>=40):

  print("you are pass")

else:

  print("better luck next time")

Screenshot of the repel:

Link of the repel:

https://replit.com/@shwetaantil97/pass-or-fail#main.py

Comments

Popular posts from this blog