adsense

Hii, welcome to my site. My name is Om prakash kartik. This blog helps you to learn programming languages concepts.

Draw a emoji in c using Graphics

Draw a emoji in c using Graphics


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
  int main()
   {
     int gdriver = DETECT,gmode;
     initgraph(&gdriver,&gmode,"C:\\TC\\BGI");
     circle(300,200,170);
     circle(230,170,40);
     circle(390,170,40);

     circle(305,230,20);

     arc(230,170,0,180,55);
     arc(390,170,0,180,55);
     rectangle(250,280,360,320);

    getch();
    closegraph();
    return 0;
}

Output:-


Post a Comment

0 Comments