Find the diagonal of the Cube | Java program to find length of 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
class GFG { static float diagonal_length ( float a ) { float L ; L = a * ( float ) Math . sqrt ( 3 ) ; return L ; } public static void main ( String [ ] args ) { float a = 5 ; System . out . println ( diagonal_length ( a ) ) ; } }