num=15
if num>=0:
if num == 0:
print("zero")
else:
print("positive#")
else:
print("negative#")
The output isπ
TOP KEYWORDS π
- Write a program to check whether a number is positive or negative in Python
- Program to check whether a number is positive or negative or zero
0 Comments
If you have any problem in code write in comments!