Program to move multicolour 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<=500;i=i+10)
   {

      delay(100);
      cleardevice();
     setcolor(i);
     circle(120+i,230,50);



   }

  getch();
}

Leave a Reply