text: Biggest Square that can be inscribed within an Equilateral triangle | Function to find the side of the square ; the side cannot be negative ; side of the square ; Driver code
code: function square ( a ) { if ( a < 0 ) return - 1 ; var x = 0.464 * a ; return x ; } var a = 5 ; document . write ( square ( a ) . toFixed ( 2 ) ) ;