- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# Program to find the Interior and Exterior Angle of a Regular Polygon in C++

In this problem, we are given a number n that denotes the sides of a regular polygon. Our task is to create a *Program to find the Interior and Exterior
Angle of a Regular Polygon in C++*.

**Problem Description** − Here, for the given number of sides, we will find the value of each interior and exterior angle of the regular polygon of side n.

**Interior Angle** is the angle between two adjacent sides of a polygon that lies inside the polygon.

**Exterior Angle** is the angle between two adjacent sides of a polygon that lies outside the polygon.

**Let’s take an example to understand the problem,**

## Input

n = 5

## Output

Interior Angle = 108, Exterior Angle = 72

## Solution Approach

A simple solution to the problem is using the formula to find the *interior
angle* of a regular polygon of side n.

**The formula for Exterior Angle**

( 360 )/n

The exterior angle of a polygon is the complement of the interior angle of the polygon.

**The formula for Internal Angle**

180 - (360 /n)

**Program to illustrate the working of our solution,**

## Example

#include <iostream> using namespace std; int FindExtAnglePolygon(int n) { return (360 / n); } int main() { int n = 10; cout<<"Interior Angle: "<<(180 - FindExtAnglePolygon(n)); cout<<"\nExterior Angle: "<<FindExtAnglePolygon(n); return 0; }

## Output

Interior Angle: 144 Exterior Angle: 36

- Related Articles
- Each interior angle of a regular polygon is four times the exterior angle. Find the number of sides in the polygon.
- Find the number of sides of a regular polygon if the exterior angle is one-third of its interior angle.
- Find the number of sides of a regular polygon whose each exterior angle is half of it's interior angle
- In a regular polygon each interior is thrice the exterior angle then number sides have?
- (a) What is the minimum interior angle possible for a regular polygon? Why?(b) What is the maximum exterior angle possible for a regular polygon?
- What's the minimum exterior angle possible of a regular polygon?
- The interior angle of a regular polygon is $156$ . Find the number of sides of the polygon.
- What is the ratio of interior and exterior angle of a regular octagon
- What will be the exterior angle of a polygon if the interior angle is 80 degrees?
- What is the Exterior and Interior angle?
- 1. Determine the number of sides of a polygon whose exterior and interior angles are in the ratio 1: 52. PQRSTU is a regular hexagon. Determine each angle of triangle PQT.
- Program to find the Circumcircle of any regular polygon in C++
- Explain interior and exterior of a circle.
- The sum of all the interior angles of a regular polygon is $1260^{circ}$, then find the numbers of sides.
- Explain the concept of interior and exterior angles.