Program to move two circles

#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();
  circle(120+i,230,50);

   circle(10+i,230,50);

   }

  getch();
}

Leave a Reply