You are on page 1of 1

#include<graphics.

h>
#include<stdio.h>
#include<conio.h>
#include<dos.h>
void main()

int g=DETECT,gm,i,j,n;
initgraph(&g,&gm,"c:\\tc\\bgi");

cleardevice();

printf("Enter the number of time to spin the coin");


scanf("%d",&n);

\\coin spin starts here

for(i=0;i<n;i++)
{
for(j=0;j<100;j++)
{
cleardevice();
setcolor(2);
ellipse(256,256,0,360,100,j);
delay(10);
}
}

getch();
}

You might also like