Pixel/Minecraft Circle Approximation
Challenge #5
Difficulty : ★ ★ ★ ☆ ☆
since pixels (or minecraft blocks) are square, they can’t represent a circle perfectly. figure out the closest approximation of a circle for a given pixel diameter.
Sample Input: 7
Sample Output:
xxx
x x
x x
x x
x x
x x
xxx
Here is an image to help give you a better idea of what the output should look like