10. Algorithm a C program to accept a coordinate point in a XY coordinate system and determine in
which quadrant the coordinate point lies
Answers
Answered by
2
Algorithm is given below.
Explanation:
Algorithm:
Step 1: Start
Step 2: Define x, y
Step 3: Read the values of x and y
Step 4: If (x > 0 && y > 0), print Point belongs to Q1 (Quadrant 1)
Step 5: If (x < 0 && y > 0), print Point belongs to Q2 (Quadrant 2)
Step 6: If (x < 0 && y < 0), print Point belongs to Q3 (Quadrant 3)
Step 7: If (x > 0 && y < 0), print Point belongs to Q4 (Quadrant 4)
Step 8: Stop
Similar questions
Math,
2 months ago
Computer Science,
2 months ago
English,
4 months ago
Math,
4 months ago
Hindi,
10 months ago
Social Sciences,
10 months ago