-
-
Save w3Abhishek/6aedf2bdb872e8ca233dcea3113764c3 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<stdio.h> | |
#include<graphics.h> | |
#include<conio.h> | |
int main(){ | |
int gd = DETECT,gm; | |
int x ,y; | |
initgraph(&gd, &gm, "C:\\TC\\BGI"); | |
/* Center of Circle is initialized in the center of screen */ | |
x = getmaxx()/2; | |
y = getmaxy()/2; | |
outtextxy(240, 50, "Concentric Circles"); | |
/* Start drawing circles on screen */ | |
setcolor(RED); | |
circle(x, y, 30); | |
setcolor(GREEN); | |
circle(x, y, 50); | |
setcolor(YELLOW); | |
circle(x, y, 70); | |
setcolor(BLUE); | |
circle(x, y, 90); | |
getch(); | |
closegraph(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment