//Program to Develop Arc and Circle in CG
#include <stdio.h>
#include <conio.h>
#include <graphics.h>
void main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\TurboC3\\BGI");
circle(200,200,30);
setcolor(YELLOW);
arc(200,200,0,90,50);
setcolor(MAGENTA);
arc(200,200,90,180,60);
setcolor(GREEN);
arc(200,200,180,270,50);
setcolor(BLUE);
arc(200,200,270,360,60);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.