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
Access this course and 1400+ top-rated courses and projects.