English, asked by katelyntrees, 9 months ago

Edhesive 3.2 Code practice question 1

Answers

Answered by gabrielv2812
67

Answer:

value = float(input('Enter a number:'))

if (value > 45.6) :

   print ('Greater than 45.6')

   

Explanation:

there u go

Answered by Jasleen0599
4

A Program to enter a number and test it is greater than 45.6 . if the number greater than 45.6 ,the program needs to output the phrase Greater than 45.6 and less than the output is Less than 45.6

CODE

n = float(input("Enter a number: "))

if (n>45.6):

print("Greater than 45.6")

if(n<45.6):

print("Less than 45.6")

Input:

Enter a number:95

Output:

Greater than 45.6

Or

Input:

Enter a number:30

Output:

Less than 45.6

#SPJ3

Similar questions