# Program to find area of a Circular Segment in C++

C++Server Side ProgrammingProgramming

In this tutorial, we will be discussing a program to find area of a circular segment.

Making a chord in a given sphere divides it into two segments - major and minor. Given the radius of the circle and angle making the minor segment, we are required to find the areas of both segments.

## Example

Live Demo

#include <bits/stdc++.h>
using namespace std;
float pi = 3.14159;
//finding area of segment
sin((angle * pi) / 180);
return area_of_sector - area_of_triangle;
}
int main() {
float radius = 10.0, angle = 90.0;
cout << "Area of minor segment = "
}
Area of minor segment = 28.5397
Area of major segment = 285.619