Program to find the quadrant in which the given coordinates lie | faceprep

Program to find the quadrant in which the given coordinates lie | faceprep

Program to find the quadrant in which the given coordinates lie is discussed here. Input a point from the user and find the quadrant in which the given coordinates lie.


Program to find the quadrant in which the given coordinates lie

DESCRIPTION

If it is in 1st Quadrant, then display Ist Quadrant,

if it is in 2nd Quadrant, then display IInd Quadrant,

if it is in 3rd Quadrant, then display IIIrd Quadrant,

if it is in 4th Quadrant, then display IVth Quadrant and

if it is in center display Origin


Program to find the quadrant in which the given coordinates lieClick here to know more about FACE Prep PRO


INPUT FORMAT:

  • Input consist of 2 integers.
  • First input corresponds to x co-ordinate.
  • Second input corresponds to y co-ordinate.


SAMPLE INPUT AND OUTPUT:


Input:

5

6


Output:

Ist Quadrant

Program to find the quadrant in which the given coordinates lie


@@coding::1@@



Recommended Programs








Program to find the quadrant in which the given coordinates lie

c