PointPosition reads the coordinates x y of a point and answers three questions:
- Is it inside, on the border of, or outside the circle of centre (0, 0) and radius 10?
- Is it inside (border included) the rectangle centred at (0, 0), 10 wide and 5 high?
- Is it the origin, on an axis, or in quadrant 1, 2, 3 or 4?
Do not use any Math method: compare the squared distance x² + y² with 10². For the input
4 5
the program prints
Circle: inside
Rectangle: outside
Position: quadrant 1