text: Area of a Hexagon | C # program to find area of a Hexagon ; Create a function for calculating the area of the hexagon . ; Driver Code ; Length of a side
code: using System ; class GFG { public static double hexagonArea ( double s ) { return ( ( 3 * Math . Sqrt ( 3 ) * ( s * s ) ) / 2 ) ; } public static void Main ( ) { double s = 4 ; Console . WriteLine ( " Area : ▁ " + hexagonArea ( s ) ) ; } }