Skip to content

Instantly share code, notes, and snippets.

@w3Abhishek
Created July 28, 2021 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w3Abhishek/243951de5498077ad15fba06adb97baa to your computer and use it in GitHub Desktop.
Save w3Abhishek/243951de5498077ad15fba06adb97baa to your computer and use it in GitHub Desktop.
#include <conio.h>
#include <dos.h>
#include <graphics.h>
#include <stdio.h>
int main() {
int gr = DETECT, gm;
initgraph( & gr, & gm, "C:\\Turboc3\\BGI");
setcolor(YELLOW);
circle(300, 100, 40);
setfillstyle(SOLID_FILL, YELLOW);
floodfill(300, 100, YELLOW);
setcolor(BLACK);
setfillstyle(SOLID_FILL, BLACK);
fillellipse(310, 85, 2, 6);
fillellipse(290, 85, 2, 6);
ellipse(300, 100, 205, 335, 20, 9);
ellipse(300, 100, 205, 335, 20, 10);
ellipse(300, 100, 205, 335, 20, 11);
getch();
closegraph();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment