Program to print different color’s circle

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
  initgraph(&gm,&gd,"");
   cleardevice();
  for(i=1;i<=11;i++)
 {
    setfillstyle(i,i);
    setcolor(i);
    cleardevice();
    circle(300,140,i*10);
    floodfill(300,140,i);
 getch();
 }
 getch();
}

Leave a Reply