" 1.CIRCLES IN CIRCLES "
#include<graphics.h>
#include<conio.h>
#include<dos.h>
int main()
{
int gd = DETECT, gm;
int x, y, color, angle = 0;
struct arccoordstype a, b;
initgraph(&gd, &gm, "C:\\TC\\BGI");
delay(2000);
while(angle<=360)
{
setcolor(BLACK);
arc(getmaxx()/2,getmaxy()/2,angle,angle+2,100);
setcolor(RED);
getarccoords(&a);
circle(a.xstart,a.ystart,25);
setcolor(BLACK);
arc(getmaxx()/2,getmaxy()/2,angle,angle+2,150);
getarccoords(&a);
setcolor(GREEN);
circle(a.xstart,a.ystart,25);
angle = angle+5;
delay(50);
}
getch();
closegraph();
return 0;
}
"2. WALL CLOCK"
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,"c:\\tc\\bgi");
bar(130,50,460,412);
bar(129,49,459,411);
setfillstyle(1,9);
bar(165,80,425,380);
setcolor(BLACK);
settextstyle(1,HORIZ_DIR,4);
outtextxy(355,95,"1");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,145,"2");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,200,"3");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,260,"4");
settextstyle(1,HORIZ_DIR,4);
outtextxy(360,315,"5");
settextstyle(1,HORIZ_DIR,4);
outtextxy(285,330,"6");
settextstyle(1,HORIZ_DIR,4);
outtextxy(220,315,"7");
settextstyle(1,HORIZ_DIR,4);
outtextxy(185,260,"8");
settextstyle(1,HORIZ_DIR,4);
outtextxy(185,200,"9");
settextstyle(1,HORIZ_DIR,4);
outtextxy(178,145,"10");
settextstyle(1,HORIZ_DIR,4);
outtextxy(200,95,"11");
settextstyle(1,HORIZ_DIR,4);
outtextxy(268,90,"12");
setcolor(RED);
setfillstyle(SOLID_FILL,RED);
circle(289,220,3);
circle(289,220,5);
setfillstyle(1,10);
do
{
for(i=1;i<=50;i++)
{
setcolor(random(15)+1);
bar(288,213,290,130);
bar(296,223,380,219);
bar(288,227,290,330);
circle(550,50,i);
circle(50,50,i);
delay(30);
}
for(i=50;i<=1;i++)
{
setcolor(random(15)+1);
bar(288,213,290,130);
bar(296,223,380,219);
bar(288,227,290,330);
setcolor(0);
circle(420,150,i);
circle(440,150,i);
delay(30);
}
}
while(!kbhit());
setcolor(15);
settextstyle(4,HORIZ_DIR,2);
outtextxy(135,420,"Zaheer Abbas Aghani");
settextstyle(4,HORIZ_DIR,2);
outtextxy(135,440,"2K9-IT-152");
getch();
}
"3.COUNT"
#include<graphics.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i;
char msg[26];
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<=15;i++)
{
settextstyle(4,HORIZ_DIR,20);
setcolor(4);
sprintf(msg,"%d",i);
outtextxy(200,200,msg);
delay(500);
setcolor(0);
outtextxy(200,200,msg);
while(!kbhit);
}
getch();
closegraph();
}
"4.FLOWER"
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<dos.h>
void main()
{
int i,gd=DETECT,gm=4;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(RED);
circle(230,200,40);
arc(260,160,290,180,32);
arc(285,219,202,118,32);
arc(232,255,140,50,30);
arc(180,222,75,338,32);
arc(195,160,0,263,32);
arc(100,255,300,0,162);
arc(102,275,300,12,164);
outtextxy(100,425,"Zaheer Abbas Aghani");
getch();
}
"5.HOUSE"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(1);
line(50,260,150,100);
line(250,260,150,100);
line(500,100,150,100);
line(600,260,500,100);
line(60,440,60,245);
line(240,440,240,245);
line(600,260,250,260);
line(580,440,580,260);
line(240,440,580,440);
//window
line(310,380,310,300);
line(360,380,360,300);
line(360,300,310,300);
line(360,380,310,380);
line(360,340,310,340);
line(335,380,335,300);
//window
line(460,380,460,300);
line(510,380,510,300);
line(510,300,460,300);
line(510,380,460,380);
line(510,340,460,340);
line(510,300,460,300);
line(485,380,485,300);
//door
line(100,430,100,285);
line(150,430,150,285);
line(200,430,200,285);
arc(150,298,375,165,53);
line(100,430,200,430);
line(100,285,200,285);
arc(150,298,390,145,25);
line(150,273,150,245);
line(160,273,170,250);
line(140,273,130,250);
line(60,440,240,440);
line(63,240,238,240);
circle(150,170,20);
settextstyle(4,HORIZ_DIR,3);
outtextxy(200,0,"Zaheer Abbas Aghani");
outtextxy(200,20,"2K9-IT-152");
//setlinestyle(DASHED_LINE,1,2);
//line(500,200,150,200);
getch();
closegraph();
}
"6.MAN"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
//for face
ellipse(320,95,360,0,25,20);
line(298,85,341,85);
circle(310,90,2);
circle(330,90,2);
arc(320,100,200,-20,10);
//for neck
line(313,115,313,125);
line(328,115,328,125);
//centre part
arc(320,225,72,107,100);
line(290,129,290,200);
line(350,129,350,200);
line(290,193,350,193);
line(290,200,350,200);
//for legs
line(290,200,285,280);
line(320,225,305,280);
line(322,225,335,280);
line(350,200,353,280);
//for right hand
line(290,129,255,165);
line(255,165,290,200);
line(290,149,275,165);
line(275,165,290,182);
//for left hand
line(350,129,385,165);
line(385,165,350,200);
line(350,149,365,165);
line(365,165,350,182);
//for shoes
line(285,280,275,287);
line(275,287,305,287);
line(305,280,305,287);
line(335,280,335,287);
line(335,287,365,287);
line(353,280,365,287);
//for name
circle(320,160,12);
line(315,155,315,165);
line(315,155,325,165);
line(325,165,325,155);
getch();
closegraph();
}
"7.Zaheer Abbas Aghani in Sindhi"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
//setcolor(RED);
//setlinestyle(CENTER_LINE, 4, 1);
line(500,230,500,100);
arc(520,206,255,137,24);
line(450,230,515,230);
arc(437,210,299,137,23);
line(380,230,515,230);
circle(424,212,17);
line(380,230,380,204);
line(337,230,515,230);
line(337,230,337,204);
line(337,230,230,300);
settextstyle(1,HORIZ_DIR,4);
outtextxy(520,150,"*");
settextstyle(1,HORIZ_DIR,4);
outtextxy(343,227,"*");
settextstyle(1,HORIZ_DIR,4);
outtextxy(360,227,"*");
//Zaheer
arc(260,206,420,290,24);
line(272,230,200,230);
line(200,230,200,204);
line(150,230,200,230);
line(150,230,150,90);
line(130,230,130,213);
arc(119,230,160,360,11);
line(108,230,108,213);
arc(97,230,160,360,11);
line(86,230,86,213);
arc(46,230,160,360,40);
settextstyle(1,HORIZ_DIR,4);
outtextxy(167,230,"*");
//Abbas
line(410,442,410,325);
arc(430,280,620,360,20);
line(430,300,380,300);
arc(360,420,440,280,24);
arc(375,324,800,530,24);
line(250,444,365,444);
line(250,444,250,325);
outtextxy(340,370,"*");
line(220,440,220,400);
line(220,440,160,440);
line(160,440,160,400);
line(160,400,110,400);
arc(61,425,160,360,50);
line(110,440,110,400);
arc(210,370,320,127,14);
line(200,380,200,330);
line(220,380,190,380);
outtextxy(60,465,"*");
outtextxy(40,465,"*");
//Aghani
setcolor(1);
settextstyle(4,HORIZ_DIR,1);
outtextxy(200,20,"Zaheer Abbas Aghani");
getch();
}
"8.KITE"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(YELLOW);
line(150,200,250,50);
line(340,200,250,50);
line(250,350,250,50);
line(250,350,150,200);
line(250,350,340,200);
line(250,385,250,50);
line(230,385,240,335);
line(272,385,258,335);
arc(250,358,230,-50,34);
line(250,392,250,50);
arc(245,230,390,150,96);
setcolor(BLUE);
settextstyle(3,HORIZ_DIR,4);
outtextxy(225,10,"KITE");
setcolor(RED);
settextstyle(4,HORIZ_DIR,4);
outtextxy(130,390,"Zaheer Abbas Aghani");
getch();
closegraph();
}
"9.ALLAH HU in Sindhi or Urdu"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(YELLOW);
line(470,300,470,100);
line(441,270,441,100);
arc(407,266,200,10,34);
line(375,277,375,100);
arc(342,266,200,10,34);
line(310,277,310,100);
line(310,147,260,147);
line(310,100,250,100);
arc(255,123,100,-80,24);
line(396,70,396,85);
arc(386,84,190,10,10);
line(376,70,376,85);
arc(366,84,190,10,10);
line(356,70,356,85);
line(376,60,376,45);
line(74,290,228,290);
arc(226,260,270,140,30);
circle(210,265,25);
arc(96,280,340,200,24);
line(120,320,120,273);
arc(96,325,250,20,24);
arc(200,205,250,20,8);
arc(205,205,40,20,3);
settextstyle(1,HORIZ_DIR,4);
setcolor(3);
outtextxy(150,400,"Zaheer Abbas Aghani");
outtextxy(220,430,"2K9-IT-152");
getch();
}
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
const float PI=3.14159;
void main()
{
int gd=DETECT,gm=4,i,x,y;
initgraph(&gd,&gm,"c:\\tc\\bgi");
circle(200,200,50);
for(i=0;i<360;i+=30)
{
x=50*cos(i*PI/180);
y=50*sin(i*PI/180);
line(200,200,200+x,200-y);
}
circle(400,200,50);
for(i=0;i<360;i+=30)
{
x=50*cos(i*PI/180);
y=50*sin(i*PI/180);
line(400,200,400+x,200-y);
}
arc(200,200,0,180,55);
arc(400,200,80,210,55);
line(200,200,300,200);
line(400,200,345,200);
line(400,200,365,60);
line(200,200,220,120);
line(220,120,300,200);
line(300,200,380,120);
line(220,120,380,120);
line(220,120,220,110);
circle(220,100,10);
setfillstyle(SOLID_FILL,RED);
floodfill(215,100,getmaxcolor());
ellipse(325,60,280,80,40,40);
circle(300,200,15);
line(300,170,300,230);
line(300,170,280,170);
line(300,230,320,230);
circle(200,200,10);
line(200,190,300,185);
line(200,210,300,215);
getch();
}
"11.FACE"
#include<conio.h>
#include<dos.h>
#include<graphics.h>
void main (void)
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<=15;i++)
{
setcolor(i);
settextstyle(4,HORIZ_DIR,4);
outtextxy(380,420,"Zaheer Abbas");
setfillstyle(1,i);
circle(380,160,20);
floodfill(380,160,i);
setcolor(i);
setfillstyle(1,i);
circle(220,160,20);
floodfill(220,160,i);
setcolor(i);
circle(300,230,180);
setcolor(i);
arc(300,290,180,0,60);
sleep(2);
}
getch();
}
#include<graphics.h>
#include<conio.h>
#include<dos.h>
int main()
{
int gd = DETECT, gm;
int x, y, color, angle = 0;
struct arccoordstype a, b;
initgraph(&gd, &gm, "C:\\TC\\BGI");
delay(2000);
while(angle<=360)
{
setcolor(BLACK);
arc(getmaxx()/2,getmaxy()/2,angle,angle+2,100);
setcolor(RED);
getarccoords(&a);
circle(a.xstart,a.ystart,25);
setcolor(BLACK);
arc(getmaxx()/2,getmaxy()/2,angle,angle+2,150);
getarccoords(&a);
setcolor(GREEN);
circle(a.xstart,a.ystart,25);
angle = angle+5;
delay(50);
}
getch();
closegraph();
return 0;
}
"2. WALL CLOCK"
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,"c:\\tc\\bgi");
bar(130,50,460,412);
bar(129,49,459,411);
setfillstyle(1,9);
bar(165,80,425,380);
setcolor(BLACK);
settextstyle(1,HORIZ_DIR,4);
outtextxy(355,95,"1");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,145,"2");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,200,"3");
settextstyle(1,HORIZ_DIR,4);
outtextxy(390,260,"4");
settextstyle(1,HORIZ_DIR,4);
outtextxy(360,315,"5");
settextstyle(1,HORIZ_DIR,4);
outtextxy(285,330,"6");
settextstyle(1,HORIZ_DIR,4);
outtextxy(220,315,"7");
settextstyle(1,HORIZ_DIR,4);
outtextxy(185,260,"8");
settextstyle(1,HORIZ_DIR,4);
outtextxy(185,200,"9");
settextstyle(1,HORIZ_DIR,4);
outtextxy(178,145,"10");
settextstyle(1,HORIZ_DIR,4);
outtextxy(200,95,"11");
settextstyle(1,HORIZ_DIR,4);
outtextxy(268,90,"12");
setcolor(RED);
setfillstyle(SOLID_FILL,RED);
circle(289,220,3);
circle(289,220,5);
setfillstyle(1,10);
do
{
for(i=1;i<=50;i++)
{
setcolor(random(15)+1);
bar(288,213,290,130);
bar(296,223,380,219);
bar(288,227,290,330);
circle(550,50,i);
circle(50,50,i);
delay(30);
}
for(i=50;i<=1;i++)
{
setcolor(random(15)+1);
bar(288,213,290,130);
bar(296,223,380,219);
bar(288,227,290,330);
setcolor(0);
circle(420,150,i);
circle(440,150,i);
delay(30);
}
}
while(!kbhit());
setcolor(15);
settextstyle(4,HORIZ_DIR,2);
outtextxy(135,420,"Zaheer Abbas Aghani");
settextstyle(4,HORIZ_DIR,2);
outtextxy(135,440,"2K9-IT-152");
getch();
}
"3.COUNT"
#include<graphics.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
int i;
char msg[26];
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<=15;i++)
{
settextstyle(4,HORIZ_DIR,20);
setcolor(4);
sprintf(msg,"%d",i);
outtextxy(200,200,msg);
delay(500);
setcolor(0);
outtextxy(200,200,msg);
while(!kbhit);
}
getch();
closegraph();
}
"4.FLOWER"
#include<graphics.h>
#include<stdlib.h>
#include<conio.h>
#include<dos.h>
void main()
{
int i,gd=DETECT,gm=4;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(RED);
circle(230,200,40);
arc(260,160,290,180,32);
arc(285,219,202,118,32);
arc(232,255,140,50,30);
arc(180,222,75,338,32);
arc(195,160,0,263,32);
arc(100,255,300,0,162);
arc(102,275,300,12,164);
outtextxy(100,425,"Zaheer Abbas Aghani");
getch();
}
"5.HOUSE"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(1);
line(50,260,150,100);
line(250,260,150,100);
line(500,100,150,100);
line(600,260,500,100);
line(60,440,60,245);
line(240,440,240,245);
line(600,260,250,260);
line(580,440,580,260);
line(240,440,580,440);
//window
line(310,380,310,300);
line(360,380,360,300);
line(360,300,310,300);
line(360,380,310,380);
line(360,340,310,340);
line(335,380,335,300);
//window
line(460,380,460,300);
line(510,380,510,300);
line(510,300,460,300);
line(510,380,460,380);
line(510,340,460,340);
line(510,300,460,300);
line(485,380,485,300);
//door
line(100,430,100,285);
line(150,430,150,285);
line(200,430,200,285);
arc(150,298,375,165,53);
line(100,430,200,430);
line(100,285,200,285);
arc(150,298,390,145,25);
line(150,273,150,245);
line(160,273,170,250);
line(140,273,130,250);
line(60,440,240,440);
line(63,240,238,240);
circle(150,170,20);
settextstyle(4,HORIZ_DIR,3);
outtextxy(200,0,"Zaheer Abbas Aghani");
outtextxy(200,20,"2K9-IT-152");
//setlinestyle(DASHED_LINE,1,2);
//line(500,200,150,200);
getch();
closegraph();
}
"6.MAN"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
//for face
ellipse(320,95,360,0,25,20);
line(298,85,341,85);
circle(310,90,2);
circle(330,90,2);
arc(320,100,200,-20,10);
//for neck
line(313,115,313,125);
line(328,115,328,125);
//centre part
arc(320,225,72,107,100);
line(290,129,290,200);
line(350,129,350,200);
line(290,193,350,193);
line(290,200,350,200);
//for legs
line(290,200,285,280);
line(320,225,305,280);
line(322,225,335,280);
line(350,200,353,280);
//for right hand
line(290,129,255,165);
line(255,165,290,200);
line(290,149,275,165);
line(275,165,290,182);
//for left hand
line(350,129,385,165);
line(385,165,350,200);
line(350,149,365,165);
line(365,165,350,182);
//for shoes
line(285,280,275,287);
line(275,287,305,287);
line(305,280,305,287);
line(335,280,335,287);
line(335,287,365,287);
line(353,280,365,287);
//for name
circle(320,160,12);
line(315,155,315,165);
line(315,155,325,165);
line(325,165,325,155);
getch();
closegraph();
}
"7.Zaheer Abbas Aghani in Sindhi"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
//setcolor(RED);
//setlinestyle(CENTER_LINE, 4, 1);
line(500,230,500,100);
arc(520,206,255,137,24);
line(450,230,515,230);
arc(437,210,299,137,23);
line(380,230,515,230);
circle(424,212,17);
line(380,230,380,204);
line(337,230,515,230);
line(337,230,337,204);
line(337,230,230,300);
settextstyle(1,HORIZ_DIR,4);
outtextxy(520,150,"*");
settextstyle(1,HORIZ_DIR,4);
outtextxy(343,227,"*");
settextstyle(1,HORIZ_DIR,4);
outtextxy(360,227,"*");
//Zaheer
arc(260,206,420,290,24);
line(272,230,200,230);
line(200,230,200,204);
line(150,230,200,230);
line(150,230,150,90);
line(130,230,130,213);
arc(119,230,160,360,11);
line(108,230,108,213);
arc(97,230,160,360,11);
line(86,230,86,213);
arc(46,230,160,360,40);
settextstyle(1,HORIZ_DIR,4);
outtextxy(167,230,"*");
//Abbas
line(410,442,410,325);
arc(430,280,620,360,20);
line(430,300,380,300);
arc(360,420,440,280,24);
arc(375,324,800,530,24);
line(250,444,365,444);
line(250,444,250,325);
outtextxy(340,370,"*");
line(220,440,220,400);
line(220,440,160,440);
line(160,440,160,400);
line(160,400,110,400);
arc(61,425,160,360,50);
line(110,440,110,400);
arc(210,370,320,127,14);
line(200,380,200,330);
line(220,380,190,380);
outtextxy(60,465,"*");
outtextxy(40,465,"*");
//Aghani
setcolor(1);
settextstyle(4,HORIZ_DIR,1);
outtextxy(200,20,"Zaheer Abbas Aghani");
getch();
}
"8.KITE"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(YELLOW);
line(150,200,250,50);
line(340,200,250,50);
line(250,350,250,50);
line(250,350,150,200);
line(250,350,340,200);
line(250,385,250,50);
line(230,385,240,335);
line(272,385,258,335);
arc(250,358,230,-50,34);
line(250,392,250,50);
arc(245,230,390,150,96);
setcolor(BLUE);
settextstyle(3,HORIZ_DIR,4);
outtextxy(225,10,"KITE");
setcolor(RED);
settextstyle(4,HORIZ_DIR,4);
outtextxy(130,390,"Zaheer Abbas Aghani");
getch();
closegraph();
}
"9.ALLAH HU in Sindhi or Urdu"
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(YELLOW);
line(470,300,470,100);
line(441,270,441,100);
arc(407,266,200,10,34);
line(375,277,375,100);
arc(342,266,200,10,34);
line(310,277,310,100);
line(310,147,260,147);
line(310,100,250,100);
arc(255,123,100,-80,24);
line(396,70,396,85);
arc(386,84,190,10,10);
line(376,70,376,85);
arc(366,84,190,10,10);
line(356,70,356,85);
line(376,60,376,45);
line(74,290,228,290);
arc(226,260,270,140,30);
circle(210,265,25);
arc(96,280,340,200,24);
line(120,320,120,273);
arc(96,325,250,20,24);
arc(200,205,250,20,8);
arc(205,205,40,20,3);
settextstyle(1,HORIZ_DIR,4);
setcolor(3);
outtextxy(150,400,"Zaheer Abbas Aghani");
outtextxy(220,430,"2K9-IT-152");
getch();
}
"10.Bicycle"
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
const float PI=3.14159;
void main()
{
int gd=DETECT,gm=4,i,x,y;
initgraph(&gd,&gm,"c:\\tc\\bgi");
circle(200,200,50);
for(i=0;i<360;i+=30)
{
x=50*cos(i*PI/180);
y=50*sin(i*PI/180);
line(200,200,200+x,200-y);
}
circle(400,200,50);
for(i=0;i<360;i+=30)
{
x=50*cos(i*PI/180);
y=50*sin(i*PI/180);
line(400,200,400+x,200-y);
}
arc(200,200,0,180,55);
arc(400,200,80,210,55);
line(200,200,300,200);
line(400,200,345,200);
line(400,200,365,60);
line(200,200,220,120);
line(220,120,300,200);
line(300,200,380,120);
line(220,120,380,120);
line(220,120,220,110);
circle(220,100,10);
setfillstyle(SOLID_FILL,RED);
floodfill(215,100,getmaxcolor());
ellipse(325,60,280,80,40,40);
circle(300,200,15);
line(300,170,300,230);
line(300,170,280,170);
line(300,230,320,230);
circle(200,200,10);
line(200,190,300,185);
line(200,210,300,215);
getch();
}
"11.FACE"
#include<conio.h>
#include<dos.h>
#include<graphics.h>
void main (void)
{
int gd=DETECT,gm;
int i;
initgraph(&gd,&gm,"c:\\tc\\bgi");
for(i=0;i<=15;i++)
{
setcolor(i);
settextstyle(4,HORIZ_DIR,4);
outtextxy(380,420,"Zaheer Abbas");
setfillstyle(1,i);
circle(380,160,20);
floodfill(380,160,i);
setcolor(i);
setfillstyle(1,i);
circle(220,160,20);
floodfill(220,160,i);
setcolor(i);
circle(300,230,180);
setcolor(i);
arc(300,290,180,0,60);
sleep(2);
}
getch();
}