C ++ program for the above approach
#include <bits/stdc++.h> NEW_LINE using namespace std ; double toRadians ( int degree ) { double pi = 3.14159265359 ; return ( ( double ) degree * ( pi / 180 ) ) ; }