Program to print multicolor arc

#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=0;i<18;i++)
  {
    setcolor(i+1);
    arc(320,240,0,10+i*15,50+i*10);
    getch();
}
getch();
}

Leave a Reply