Program to print multicolor Pie Slice

#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<11;i++)
{ 
  delay(1000);
   setfillstyle(i,i);
   pieslice(320,240,45,90,100);
    setfillstyle(i,i+1);
    pieslice(320,240,100,190,100);
    setfillstyle(i,i+2);
    pieslice(320,240,200,270,100);
  }
 getch();
 }

Leave a Reply