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
function radius ( n , d ) { document . write ( " " + d / ( n - 1 ) ) ; }