Okay, I think I've got it. Code below is Excel VBA, but can easily be adapted to any language.

To determine the x- and y-coordinates, use these formulas:

Where:

r = radius

q = qth point of n

n = total number of points

j = circle center, x-axis

k = circel center, y-axis

Xq = x-coordinate for qth point

Yq = y-coordinate for qth point

The code in Excel VBA looks like this (I didn't clean up any of the parens...)

Code:

Sub MakeACircle()
Dim n As Double
Dim x As Double
Dim y As Double
Dim j As Double
Dim k As Double
Dim r As Double
Dim q As Integer
r = 2
j = 5
k = 5
'This number controls gow many points the circle has
n = 30
For q = 1 To n
x = (r * (Cos(((q * 3.1415926535 * 360) / n) / 180))) + j
y = (r * (Sin(((q * 3.1415926535 * 360) / n) / 180))) + k
Cells(q + 1, 1) = x
Cells(q + 1, 2) = y
Next q
End Sub

The output, and a graph of it, looks like this:

Hope that helps!