Coordinates of the given point
int PX = 1 , PY = 4 ; int ans = getQuadrant ( X , Y , R , PX , PY ) ; if ( ans == - 1 ) System . out . println ( " Lies ▁ Outside ▁ the ▁ circle " ) ; else if ( ans == 0 ) System . out . println ( " Coincides ▁ with ▁ centre " ) ; else System . out . println ( ans + " ▁ Quadrant " ) ; } }