if-else-if Example in Python

a=int(input("enter a value"))
b=int(input("enter b value"))
c=int(input("enter c value"))
if(a>b)&(a>c):
print("a is greater")
elif(b>c):
print("b is greater")
else:
print("c is greater")
print("end of the program")

Leave a Reply

Your email address will not be published. Required fields are marked *