Program to move multicolour circles in circle

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>


void main()
{
  clrscr();
  int gm=DETECT,gd,i;


   initgraph(&gm,&gd,"");

   for(i=0;i<15;i++)
   {

      delay(100);

     setcolor(i+1);

     circle(320,240,50+i*10);



   }

  getch();
}

Leave a Reply