Program to draw a compact disc

/* Program to draw a compact disc */

#include<iostream.h>
#include<graphics.h>
#include<conio.h>
void main()
{
int x,y,r,i;
cout<<“\n\t\t\t\t**To draw a compact disc**\n”;
cout<<“\nenter the x and y coordinates:-\n”;
cin>>x>>y;
cout<<“\nenter the radius:-\n”;
cin>>r;
int gd=DETECT,gm;
initgraph(&gd,&gm,””);
setbkcolor(WHITE);
setcolor(8);
for(i=0;i<150;i++)
circle(x,y,r+i);
setcolor(8);
outtextxy(100,60,”Compact Disc”);
getch();
}

Leave a Reply

Your email address will not be published. Required fields are marked *