227,471 views
0 votes
0 votes
Write a program to enter a number and test if it is less than 26.4. If the number entered is less than 26.4, the program needs to output the phrase Less than 26.4..

Sample Run
Enter a number: 20
Sample Output
Less than 26.4

User Blakkwater
by
2.3k points

1 Answer

10 votes
10 votes

Answer: Assuming for python:

num= float(input("pick any number to know if its below 26.4:"))

if num<26.4:

print("your number is less than 26.4")

elif num>26.4:

print("your number is bigger than 26.4")

elif num==26.4:

print("your number is 26.4")

else:

print("enter a valid number")

Step-by-step explanation:

User Ewggwegw
by
2.9k points