Home > Backend Development > C++ > What is the area of ​​the circular sector?

What is the area of ​​the circular sector?

WBOY
Release: 2023-08-30 08:33:11
forward
797 people have browsed it

A circular sector, also known as a circular sector/sector of a circle, is a part of a circle enclosed by an arc between two radii. This area is bounded by two radii and an arc. To find the area inscribed, we need to find the angle between the two radii. The total area is equal to 360 degrees of angle. To find the area of ​​an angle, we multiply the area by θ/360. This gives the area of ​​the inscribed part.

where θ is the angle (in degrees) between the two radii.

What is the area of ​​the circular sector?

The area of ​​the circular sector = π*r*r*(θ/360).

Example

The area of ​​a circular sector with a radius of 5 and an angle of 60 degrees is 13.083.

Area = (3.14*5*5)*(60/360) = 13.03

Sample code

Demonstration

#include <stdio.h>
int main(void) {
int r = 5;
   int angle = 60;
   float pie = 3.14;
   float area = (float)(pie*r*r*angle/360);
   printf("The area of sector of a circle of radius %d with an angle of %d is %f", r,angle,area);
   return 0;
}
Copy after login

Output

The area of sector of a circle of radius 5 with an angle of 60 is 13.083333
Copy after login

The above is the detailed content of What is the area of ​​the circular sector?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template