LearnPy Hub
← If…Else problems
Medium

Which Quadrant?

Read x and y (both non-zero) and print which quadrant the point is in: 1, 2, 3 or 4.

Input

Two non-zero integers.

Output

1, 2, 3 or 4.

Sample 1

Input
2
3
Output
1

Sample 2

Input
-2
3
Output
2
solution.py
Output appears here
Which Quadrant? · Python practice problem · LearnPy Hub