Q-5 Write a program in Python to
check weather a number is positive
or negative
Answers
Answered by
2
Answer:
x=int(input("ENTER A NUMBER: "))
if(x>0):
print("THE NUMBER IS POSITIVE")
if(x<0):
print("THE NUMBER IS NEGATIVE")
else:
print("THE NUMBER IS ZERO")
"""I DID THIS PROGRAM ,AND I DONT THINK THE INDENTATION IS PERFECT.I TRIED TO MAKE THE INDENT LOOK GOOD,BUT AS PYTHON IS VERY STRICT IN INDENTATION,BE SURE TO CHECK IT.AND ALSO PLEASE MARK MY ANSWER THE BRAINLIEST.THANK YOU"""
Similar questions