#include
#include
main()
{
int gd=DETECT,gm;
clrscr();
initgraph(&gd,&gm,"C:\\TC\\BGI"); /* initialization of graphic mode */
for(int i=0, j=0; i<100; i++, j++)
{
setcolor(j);
circle(150,150,(i+10)); // Last argument is for radius
i= i+5;
}
getch();
closegraph(); /* Restore orignal screen mode */
return 0;
}
/* End of program */
No comments:
Post a Comment