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.
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
INPUT FORMAT:
SAMPLE INPUT AND OUTPUT:
Input:
5
6
Output:
Ist Quadrant
@@coding::1@@
Recommended Programs