Find the radii of the circles which are lined in a row , and distance between the centers of first and last circle is given | Java program to find radii of the circles which are lined in a row and distance between the centers of first and last circle is given ; Driver code
import java . io . * ; class GFG { static void radius ( int n , int d ) { System . out . print ( " The ▁ radius ▁ of ▁ each ▁ circle ▁ is ▁ " + d / ( 2 * n - 2 ) ) ; } static public void main ( String [ ] args ) { int d = 42 , n = 4 ; radius ( n , d ) ; } }