Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
329 B
0
Indexable
Never
#Q3.
a = float(input("Enter the first number (a): "))
b = float(input("Enter the second number (b): "))
c = float(input("Enter the third number (c): "))

highest_value = max(a, b, c)

if highest_value == a:
    print("a is Greater")
elif highest_value == b:
    print("b is Greater")
else:
    print("c is Greater")
Leave a Comment