Write a Program to draw Cartoon in C

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

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

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

   setcolor(YELLOW);

   ellipse(330,100,0,360,40,20);
   circle(310,95,5);
   circle(345,95,5);

   ellipse(330,150,0,360,20,30);
   line(310,150,280,170);
   line(350,150,380,170);

   getch();
   closegraph();

   return 0;
}





Previous
Next Post »