Program to convert Degree to Radian | C # program to convert degree to radian ; Function for conversion ; Driver code
using System ; class GFG { static double Convert ( double degree ) { double pi = 3.14159265359 ; return ( degree * ( pi / 180 ) ) ; } public static void Main ( ) { double degree = 30 ; double radian = Convert ( degree ) ; Console . Write ( " { 0 : F6 } " , radian ) ; } }