Program to convert Degree to Radian | Java program to convert degree to radian ; Function for conversion ; Driver code
import java . io . * ; import java . util . * ; class GFG { static double Convert ( double degree ) { double pi = 3.14159265359 ; return ( degree * ( pi / 180 ) ) ; } public static void main ( String [ ] args ) { double degree = 30 ; double radian = Convert ( degree ) ; System . out . printf ( " % .6f " , radian ) ; } }