Maximum area of rectangle possible with given perimeter | Function to find max area ; return area ; Driver code
function maxArea ( perimeter ) { let length = Math . ceil ( perimeter / 4 ) ; let breadth = Math . floor ( perimeter / 4 ) ; return length * breadth ; } let n = 38 ; document . write ( " " + maxArea ( n ) ) ;