Write a Program to draw Face in C

/*Face*/
#include<stdio.h>
#include<conio.h>
#include<graphics.h>

int main()
{
   int gm,gd=DETECT;


   initgraph(&gd,&gm,"C:\\turboc3\\bgi");
   outtextxy(300,50,"Face");

   setcolor(YELLOW);

   ellipse(320,100,0,360,35,30);
   circle(298,92,5);
   circle(341,92,5);

   line(315,110,324,110);

   line(315,110,320,100);
   line(324,110,320,100);

   rectangle(310,115,330,122);

   getch();
   closegraph();

   return 0;
}





Previous
Next Post »