Computer Science, asked by riddhima4199, 1 day ago

Using if, else, elif statements - check if a float number is
a) less than 70.5
b) between 70.5 and 90.5
c) between 90.5 and 150.5
d) greater than 150.5

Answers

Answered by hype10
0

Answer:

m=float(input("type a number in decimal ))

if m < 70.5:

print(it is smaller than 70.5)

elif 70.6 >= m <= 90.5:

print("number is between 70.5 and 90.5")

elif 90.6 >= m <= 150.5:

print("number is between 90.5 and 150.5")

else m > 150.6:

print("it is greater than 150.5")

please mark as brain list

Similar questions