You are on page 1of 1

Draw a Circle Using Graphics

============================================
#include <conio.h>
#include <iostream.h>
#include <graphics.h>
void main()
{
clrscr();

//INITIALIZATION OF GRAPHIC MODE

int gdriver = DETECT, gmode;


initgraph (&gdriver,&gmode,"d:\\turbo\\tc\\bgi");

// DECLARATION OF VARIABLES

int x=getmaxx()/2;
int y=getmaxy()/2;

//DRAWING A CIRCLE

circle (x,y,50);

getch();
}

http://www.ravianeducation.blogspot.com
FARHAN: 03008855006