Area of a Triangle from the given lengths of medians | Function to return the area of triangle using medians ; Driver Code ; Function Call ; Prvar the final answer
function Area_of_Triangle ( a , b , c ) { var s = ( a + b + c ) / 2 ; var x = s * ( s - a ) ; x = x * ( s - b ) ; x = x * ( s - c ) ; var area = ( 4 / 3 ) * Math . sqrt ( x ) ; return area ; } var a = 9 ; var b = 12 ; var c = 15 ; var ans = Area_of_Triangle ( a , b , c ) ; document . write ( ans . toFixed ( 1 ) ) ;