Quadrant Selection

This commit is contained in:
2022-05-13 21:38:11 +02:00
parent fa6f58b2be
commit 29b85debb0

14
quadrant.py Normal file
View File

@@ -0,0 +1,14 @@
import sys
x = int(sys.stdin.readline())
y = int(sys.stdin.readline())
if 0 < x and 0 < y:
print(1)
elif x < 0 and 0 < y:
print(2)
elif x < 0 and y < 0:
print(3)
else:
print(4)