-
-
Save w3Abhishek/243951de5498077ad15fba06adb97baa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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