Edhesive 3.2 Code practice question 1
Answers
Answered by
67
Answer:
value = float(input('Enter a number:'))
if (value > 45.6) :
print ('Greater than 45.6')
Explanation:
there u go
Answered by
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
Social Sciences,
5 months ago
Physics,
9 months ago
Math,
9 months ago
Chemistry,
1 year ago
Social Sciences,
1 year ago