Skip to content

Instantly share code, notes, and snippets.

@w3Abhishek
Created July 24, 2021 11:20
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/6aedf2bdb872e8ca233dcea3113764c3 to your computer and use it in GitHub Desktop.
Save w3Abhishek/6aedf2bdb872e8ca233dcea3113764c3 to your computer and use it in GitHub Desktop.
#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