#include<graphics.h>
#include<conio.h>
#include<dos.h>
main()
{
int graphdrive=DETECT,graphmode
int x,y,radius,endangle,stangle,m=359,n=360
initgraph(&graphdrive,&graphmode,"c:\turboc2\bgi")
x=300
y=200
radius=100
do
{
cleardevice()
setcolor(WHITE)
setlinestyle(SOLID_LINE,1,1)
circle(x,y,radius)
stangle=m
endangle=n
setcolor(RED)
setlinestyle(SOLID_LINE,1,3)
arc(x,y,stangle,endangle,radius)
n--
m--
sleep(1)
if(n==1)
{
m=359
n=360
}
}while(!kbhit())
getch()
closegraph()
return 0
}