another selection problem

i had another question...
question:
Write a program that prompts the users to input x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the origin, is located on the x-(or y-)axis or appears in particular quadrant.

for example:
(0,0) is the origin
(4,0) on the x-axis
(0,-3) on the y-axis
(-2,3) the second quadrant
Ummmm...get the data...then do some simple if-else checks?
You should write some code yourself before asking for help.
Topic archived. No new replies allowed.