drawing a circle in a console application
I'm trying to draw a circle in a console application using asterisks depending on the radius but i cant get the idea .. can anybody help me out here??
something like this...
****
*******
********
********
*******
****
# 1 Re: drawing a circle in a console application
sounds like homework to me... you would use a loop, of course, and build each string that you want to display in the loop and output it, generally speaking...
# 2 Re: drawing a circle in a console application
Yeah, but what i want is that the user enters the radius then depending on that it draws the circle ... i once did a program that draws a diamond ...that is were i looped and displayed the output but here i think it's different cuz if i do the same thing it's not gonna look like a circle??