Program to convert Degree to Radian | C ++ program to convert degree to radian ; Function for conversion ; Driver code
#include <iostream> NEW_LINE #include <math.h> NEW_LINE using namespace std ; double Convert ( double degree ) { double pi = 3.14159265359 ; return ( degree * ( pi / 180 ) ) ; } int main ( ) { double degree = 30 ; double radian = Convert ( degree ) ; cout << radian ; return 0 ; }