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

Download Code


Comments

Popular posts from this blog

Write A Python Program, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.

Write Python Program To Store Seven Fruits Name In a List Enter By The User