Here, maybe a few other shapes as well
#include
#include
void main()
{
int gd=DETECT, gm;
int poly[12]={350,450, 350,410, 430,400, 350,350, 300,430, 350,450 };
initgraph(&gd, &gm, "");
circle(100,100,50);
outtextxy(75,170, "Circle");
rectangle(200,50,350,150);
outtextxy(240, 170, "Rectangle");
ellipse(500, 100,0,360, 100,50);
outtextxy(480, 170, "Ellipse");
line(100,250,540,250);
outtextxy(300,260,"Line");
sector(150, 400, 30, 300, 100,50);
outtextxy(120, 460, "Sector");
drawpoly(6, poly);
outtextxy(340, 460, "Polygon");
getch();
closegraph();
}
Chat with our AI personalities
You can draw a circle in assembly program by using a compass-like tool. Secure the tip of the compass and then rotate the compass tool so that it completes the circle.
program that display the area of a circle of a reduce
Draw a diameter on the circle from A to B and mark the midpoint, C (center of the circle). Mark the midpoint, D, of one of those radii (halfway between center and edge). Draw a perpendicular line to the diameter from D to the two edges of the circle, E and F. Draw radii from E to C and F to C. Lines AC, EC, and FC mark the three equal parts of a circle.
You draw a circle around a circle.
Learn c programming and geometry. It will be easy when you know both.