text: Radius of the circle when the width and height of an arc is given | Java program to find radius of the circle when the width and height of an arc is given ; Function to find the radius ; Driver code
code: class GFG { static void rad ( double d , double h ) { System . out . println ( " The ▁ radius ▁ of ▁ the ▁ circle ▁ is ▁ " + ( ( d * d ) / ( 8 * h ) + h / 2 ) ) ; } public static void main ( String [ ] args ) { double d = 4 , h = 1 ; rad ( d , h ) ; } }