Question #95766

Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program needs to output the phrase Greater than 45.6.

Expert's answer

num = float(input("Enter the number"))
if num>45.6:
    print ("Greater than 45.6")
LATEST TUTORIALS
APPROVED BY CLIENTS