Coordinates

Report a typo

Locate a point on the Cartesian coordinate plane: which of the four quadrants does a point belong to?

Cartesian coordinate plane

Read two numbers from the input, not necessarily integers, the first number will indicate a position on the X-axis, the second one — on the Y-axis. Let's keep referring to the quadrants by Roman numerals, as shown in the picture.

If the point is the origin (0, 0), print It's the origin! If a point lies on the axes, with either x = 0 or y = 0, print One of the coordinates is equal to zero!

Sample Input 1:

3.987
-10

Sample Output 1:

IV
Write a program in Python 3





___

Create a free account to access the full topic