Example 15: Find the Position of a Point on the Plane
Learn how to determine the location of a point in a coordinate plane.
We'll cover the following
Problem
Given a point (x, y)
, write a program to determine its location on the coordinate plane.
The output should be printed on the console in the following manner:
- origin
- x-axis
- y-axis
- First Quadrant
- Second Quadrant
- Third Quadrant
- Fourth Quadrant
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.