Find the Largest Among Three Numbers Program in Python

Find the Largest Among Three Numbers
Program in Python


Code:

a = int(input("enter a: "))
b = int(input("enter b: "))
c = int(input("enter c: "))

if(a > b and a > c):
    print(a, "is greater")

elif(b>a and b>c):
    print(b , "is greater")

elif(c>a and c>b):
    print(c , "is greater")








Output:


enter a: 10
enter b: 3
enter c: 80
80 is greater
>>> 


Video Tutorial:







Post a Comment

Previous Post Next Post