Python Program to Take three numbers from the user and print the greatest number.
Or/
Write a program to find greatest of three numbers in python.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
#Python Program to Take three numbers from the user and print the greatest number num1 = float(input("ENTER FIRST NUMBER : ")) num2 = float(input("ENTER SECOND NUMBER : ")) num3 = float(input("ENTER THIRD NUMBER : ")) if (num1 >= num2) and (num1 >= num3): largest = num1 elif (num2 >= num1) and (num2 >= num3): largest = num2 else: largest = num3 print("The largest number is", largest)