Computer Science, asked by srijarayikanti, 4 months ago

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 mad210203
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, 10 months ago