#include<stdio.h>
#include<graphics.h>
#include<conio.h>
int main()
{
int gd = DETECT,gm;
int x ,y;
initgraph(&gd, &gm, "");
/* Initialize center of circle with center of screen */
x = getmaxx()/2;
y = getmaxy()/2;
outtextxy(240, 50, "Concentric Circles");
/* Draw circles on screen */
circle(x, y, 30);
getch();
closegraph();
return 0;
}
#include<graphics.h>
#include<conio.h>
int main()
{
int gd = DETECT,gm;
int x ,y;
initgraph(&gd, &gm, "");
/* Initialize center of circle with center of screen */
x = getmaxx()/2;
y = getmaxy()/2;
outtextxy(240, 50, "Concentric Circles");
/* Draw circles on screen */
circle(x, y, 30);
getch();
closegraph();
return 0;
}
No comments:
Post a Comment