Central angle of a N sided Regular Polygon | Function to calculate central angle of a polygon ; Calculate the angle ; Driver code
function calculate_angle ( n ) { var total_angle = 360 ; return total_angle / n ; } var N = 5 ; document . write ( calculate_angle ( N ) ) ;