Area of a square from diagonal length | C # Program to find the area of square when its diagonal is given . ; Returns area of square from given diagonal ; Driver code
using System ; class GFG { static double findArea ( double d ) { return ( d * d ) / 2 ; } public static void Main ( ) { double d = 10 ; Console . WriteLine ( findArea ( d ) ) ; } }