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:-
0 Comments