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
English,
1 month ago
English,
1 month ago
English,
1 month ago
English,
3 months ago
Business Studies,
10 months ago
World Languages,
10 months ago
Science,
10 months ago