In a test for a developer job, I was asked to solve this problem which I had no idea about. Would someone please help me.
Draw a dotted line circle boundary using void draw(int x, int y) to draw one point. Use the formula x2 + y2 = r2. You can use sqrt method, but don’t use sin, cos or tan etc.
Void DrawCircle(int centerX, int centerY, int radius) {…}
PS: This is not at all a college assignment, so please reply.
i wrote a quick code that could solve your problem, but havent tested it.