Central angle of a N sided Regular Polygon | C ++ program for the above approach ; Function to calculate central angle of a polygon ; Calculate the angle ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; double calculate_angle ( double n ) { double total_angle = 360 ; return total_angle / n ; } int main ( ) { double N = 5 ; cout << calculate_angle ( N ) ; return 0 ; }