C Program to Draw an Arc in Graphics

#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main( )
{
  int gd = DETECT, gm;
  initgraph(&gd, &gm, "C:\\TC\\BGI");
  arc(100,100,90,280,10);
  //Arc(x1,y1,StartingAngle,EndingAngle,Radius)
  getch( );
  closegraph( );
}


OUTPUT:

No comments:

Post a Comment