Find the diagonal of the Cube | Function to find length of diagonal of cube ; Formula to Find length of diagonal of cube ; Driver code ; Function call
function diagonal_length ( a ) { let L ; L = a * Math . sqrt ( 3 ) ; return L ; } let a = 5 ; document . write ( diagonal_length ( a ) . toFixed ( 5 ) ) ;