Area of Incircle of a Right Angled Triangle | javascript code to find the area of inscribed circle of right angled triangle ; Function to find the area of inscribed circle ; Driver code
let PI = 3.14159265 ; function area_inscribed ( P , B , H ) { return ( ( P + B - H ) * ( P + B - H ) * ( PI / 4 ) ) ; } var P = 3 , B = 4 , H = 5 ; document . write ( area_inscribed ( P , B , H ) . toFixed ( 6 ) ) ;