arc function

arc function is used to draw an arc with center (x, y) and stangle specifies starting angle, endangle specifies the end angle and the radius of the arc.
आर्क फंक्शन का प्रयोग कर एक केंद्र (x, y) , एक प्रारंभिक कोण एक अंतिम कोण एवं त्रिज्या के साथ एक चाप खिंचा जा सकता है 
Syntax:-
void arc(int x, int y, int stangle, int endangle, int radius);

Program:-
#include <graphics.h>
#include <conio.h>
int main()
{
   int gd = DETECT, gm;
   initgraph(&gd, &gm, "C:\\TC\\BGI");
   arc(100, 100, 0, 135, 50);
   getch();
   closegraph();
   return 0;
}

Comments

Popular posts from this blog

C Language Topics in Hindi and English

Top High-Paying Tech Skills to Learn in 2025

C Programming for Finance: A Powerful Tool for Financial Modeling and Analysis