Area of a square from diagonal length | Returns area of square from given diagonal ; Driver Code
< ? php function findArea ( $ d ) { return ( $ d * $ d ) / 2 ; } $ d = 10 ; echo ( findArea ( $ d ) ) ; ? >