//Program to Draw Circle
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,midx,midy;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
midx=getmaxx()/2; midy=getmaxy()/2;
setcolor(CYAN);
circle(midx,midy,100);
circle(midx,midy,20);
circle(midx+100,midy,50);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.