Write A Python Program To Find Max Between Three Numbers.
Write A Python Program To Find Max Between Three Numbers Enter By The User.
Code:
num1 = int(input("Enter The First Number:"))
num2 = int(input("Enter The Second Number:"))
num3 = int(input("Enter The Third Number:"))
if num1>num2 and num1>num3 :
print(f"{num1} is Greatest Number")
elif num2>num1 and num2>num3 :
print(f"{num2} is Greatest Number")
else:
print(f"{num3} is Greatest Number")
Output:
Enter The First Number:47
Enter The Second Number:50
Enter The Third Number:48
50 is Greatest Number
Comments
Post a Comment