Write a python program to find greater among three numbers.

 Program:-

a=int(input(“a=”))
b=int(input(“b=”))
c=int(input(“c=”))
if a>b:
if a>c:
print(f“greater among {a} ,{b} and {c} is “,a)
else:
print(f“greater among {a} ,{b} and {c} is “, c)
else:
if b>c:
print(f“greater among {a} ,{b} and {c} is “,b)
else:
print(f“greater among {a} ,{b} and {c} is “, c)

Output:-

a=2
b=3
c=1
greater among 2 ,3 and 1 is 3


Leave a Reply

Your email address will not be published.