Use this parametric equation for a circle:

x = cx + r * cos(a)

y = cy + r * sin(a)

Where r - radius, cx,cy -origin, and a - angle.

Pay attention, that most languages require radians for the angle in trig functions, so it would be better to cycle through 0..2PI radians, then through 0..360 degrees