Skip to content

Commit cfb3706

Browse files
authored
Add files via upload
1 parent abc90a0 commit cfb3706

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

positive_negative.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
n = int(input("Enter the number to check it is positive or negative : "))
2+
if n > 0:
3+
print("positive")
4+
elif n < 0:
5+
print("negative")
6+
else:
7+
print("zero")

0 commit comments

Comments
 (0)