Find the side of the squares which are lined in a row , and distance between the centers of first and last square is given | javascript program to find side of the squares which are lined in a row and distance between the centers of first and last squares is given ; Driver code
function radius ( n , d ) { document . write ( " " + d / ( n - 1 ) ) ; } var d = 42 , n = 4 ; radius ( n , d ) ;