import math

# Parameters
center_x = 0
center_y = 20  # Simplified for terminal display
radius = 10   # Simplified for terminal display

# Terminal size (width x height)
width, height = 80, 40

# Initialize a grid
grid = [[' ' for _ in range(width)] for _ in range(height)]

# Draw the circle
for y in range(height):
    for x in range(width):
        # Translate grid coordinates to center coordinates
        dx = x - width // 2 + center_x
        dy = y - height // 2 - center_y
        
        # Check if the point is on the circle
        distance = math.sqrt(dx**2 + dy**2)
        if abs(distance - radius) < 1:
            grid[y][x] = '*'

# Print the grid
for row in grid:
    print(''.join(row))
