Here, we will read the coordinate points from the user. Then we will determine the quadrant and print the result.
Quadrant:
There are four Quadrants based on the origin (Meeting point of the two axes).
- In the first quadrant, both x and y have positive values.
- In the second quadrant, x is negative and y is positive.
- In the third quadrant, x and y are negative
- In the fourth quadrant, x is positive and y is negative.
Program/Source Code:
The source code to read coordinate points and determine their quadrant is given below. The given program is compiled and executed successfully.
Output:
Explanation:
Here, we read the value of coordinates from the user. Then we determined the quadrant and printed the result.
need an explanation for this answer? contact us directly to get an explanation for this answer