Maximum area of a Rectangle that can be circumscribed about a given Rectangle of size LxW | C # program for the above approach ; Function to find area of rectangle inscribed another rectangle of length L and width W ; Area of rectangle ; Return the area ; Driver Code ; Given dimensions ; Function call
using System ; class GFG { static double AreaofRectangle ( int L , int W ) { double area = ( W + L ) * ( W + L ) / 2 ; return area ; } public static void Main ( String [ ] args ) { int L = 18 ; int W = 12 ; Console . Write ( AreaofRectangle ( L , W ) ) ; } }