1. Write a program to print one of the words negative, zero, or positive, according to whether variable x is
less than zero, zero, or greater than zero, respectively?
Answers
Answered by
3
Answer:
x = int(input("Enter Number")
if x>0:
print("greater than zero")
elif x<0:
print("less than zero")
else:
print("zero")
Answered by
1
Answer:
x=float(input("Enter a number:"))
if x==0:
print("Your number is Zero")
elif x>0:
print("Your number is greater than Zero")
elif x<0:
print("Your number is smaller than Zero")
Explanation:
Similar questions
Math,
1 month ago
Math,
1 month ago
English,
2 months ago
Business Studies,
9 months ago
World Languages,
9 months ago
Science,
9 months ago