Wednesday, 25 May 2016

Draw a Circle with Graphics.h In Dev C++


Draw a Circle with Graphics.h In Dev C++


circle(200,150,75);.......
circle(int x, int y, Radius)....
A(x,y) Is Point On Axis...... On This Point Draw a Circle With a Radius Given......

Output Shown Like This:



Code :-
           Is Given Blow
#include<conio.h>
#include<graphics.h>
int main()
{
int gd=DETECT,gm;
initgraph(&gd, &gm, "C\\TC\\BGI");
circle(200,150,75); //1st two is for starting point 3rd is radius
getch();
closegraph;
}

No comments: