Area of hexagon with given diagonal length | C # program to find the area of Hexagon with given diagonal ; Function to calculate area ; Formula to find area ; Code driven
using System ; public class GFG { public static float hexagonArea ( float d ) { return ( float ) ( ( 3 * Math . Sqrt ( 3 ) * d * d ) / 8 ) ; } static public void Main ( ) { float d = 10 ; Console . WriteLine ( " Area ▁ of ▁ hexagon : ▁ " + hexagonArea ( d ) ) ; } }