I've had some serious trouble writing a program that creates a circle, and larger circles around that one depending on how many the user inputs.

the user enters the number of circles he/she wants and then it goes into this while loop...

say x = 1.5 at start and r = .5

while(num>0)
{
Movepen(1.5, x);
DrawArc(r, 0, 360);
x =+ .2;
r =+ .2;
num--;
}

but this doesn't work! i don't get it. any help would be appreciated, even if you write the program for me, i just want to understand how to do this!

oh yeah... x and r are floating point variables and there is an InitGraph() function in there

and most the time i only get 2 circles no matter how many i enter.
thanks