Find the angle of Rotational Symmetry of an N | C ++ program to find the angle of Rotational Symmetry of an N - sided regular polygon ; function to find required minimum angle of rotation ; Store the answer in a double variable ; Calculating the angle of rotation and type - casting the integer N to double type ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; double minAnglRot ( int N ) { double res ; res = 360 / ( double ) N ; return res ; } int main ( ) { int N = 4 ; cout << " Angle ▁ of ▁ Rotational ▁ Symmetry : ▁ " << minAnglRot ( N ) ; return 0 ; }