I really need your responce for my assignment in programming, please give me the code to have an output of a circle and rectangular shape in Turbo C. What is the function needed to print those output? and please give me the exact program code. Thank you so much. Godbless.
Sample code to have an output of a circle and rectangular shape in turbo C.?
#include%26lt;graphics.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
int gd=DETECT, gm;
int poly[12]={350,450, 350,410, 430,400, 350,350, 300,430, 350,450 };
initgraph(%26amp;gd, %26amp;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();
}
--------------------------------------...
#include%26lt;graphics.h%26gt;
#include%26lt;conio.h%26gt;
void main()
{
int gd=DETECT, gm;
initgraph(%26amp;gd, %26amp;gm, "c:\\turboc3\\bgi " );
circle(200,100,150);
getch();
closegraph();
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment