#include <graphics.h>
#include <stdio.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm,i;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
setbkcolor(BLACK);
setcolor(5);
circle(50,400,50);
setfillstyle(SOLID_FILL,5);
floodfill(50,400,5);
line(250,400,280,365);
line(250,400,350,400);
line(320,365,350,400);
line(33,365,280,365);
circle(250,400,20);
circle(350,400,20);
line(10,10,100,10);
arc(100,345,45,135,35);
outtextxy(90,335,"arc");
outtextxy(500,200,"circle");
outtextxy(10,10,"line");
outtextxy(50,465,"solid circle");
outtextxy(540,70,"ellipse");
ellipse(550,50,0,360,25,45);getch();
getch();}
#include <stdio.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm,i;
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
setbkcolor(BLACK);
setcolor(5);
circle(50,400,50);
setfillstyle(SOLID_FILL,5);
floodfill(50,400,5);
line(250,400,280,365);
line(250,400,350,400);
line(320,365,350,400);
line(33,365,280,365);
circle(250,400,20);
circle(350,400,20);
line(10,10,100,10);
arc(100,345,45,135,35);
outtextxy(90,335,"arc");
outtextxy(500,200,"circle");
outtextxy(10,10,"line");
outtextxy(50,465,"solid circle");
outtextxy(540,70,"ellipse");
ellipse(550,50,0,360,25,45);getch();
getch();}
This comment has been removed by the author.
ReplyDelete