if-else program in python
if-else program in python
code ;
sub1 = int(input("enter your maths sub marks\n :"))
sub2 = int(input("enter your sciance sub marks\n :"))
sub3 = int(input("enter your gujarati sub marks\n :"))
if (sub1>40):
print("you are pass")
else:
print("you are a fail")
if (sub2>40):
print("you are pass")
else:
print("you are a fail")
if (sub3>40):
print("you are pass")
else:
print("you are a fail")
print(sub1,sub2,sub3)
OUT PUT ;
enter your maths sub marks
:65
enter your sciance sub marks
:57
enter your gujarati sub marks
:86
you are pass
you are pass
you are pass
65 57 86
Comments
Post a Comment