Program to print the wink smiley using circle arc with floodfill function

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
  clrscr();
  int gm=DETECT,gd,i;
  initgraph(&gm,&gd,"");

    setfillstyle(1,5);
    setcolor(11);
    circle(180,200,30);			  
    floodfill(180,200,11);

    arc(169,193,200,360,2);
    circle(190,193,2);
    arc(180,210,210,360,10);

  getch();
}

Leave a Reply