In step 7, it has to be **y=y-1** and that is why option 4 is not correct.

Dark Mode

502 views

0 votes

**Algorithm**

**Step 1 − Get the coordinates of the center of the circle and radius, and store them in x, y, and R respectively. Set P=0 and Q=R.**

**Step 2 − Set decision parameter D = 3 – 2R.**

**Step 3 − Repeat through step-8 while X < Y.**

**Step 4 − Call Draw Circle (X, Y, P, Q).**

**Step 5 − Increment the value of P.**

**Step 6 − If D < 0 then D = D + 4x + 6.**

**Step 7 − Else Set Y = Y + 1, D = D + 4(X-Y) + 10.**

**Step 8 − Call Draw Circle (X, Y, P, Q).**

**Ans: (D)**