Find the diagonal of the Cube | C # 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
using System ; class GFG { static float diagonal_length ( float a ) { float L ; L = a * ( float ) Math . Sqrt ( 3 ) ; return L ; } public static void Main ( ) { float a = 5 ; Console . Write ( diagonal_length ( a ) ) ; } }