private double length,width;
Console.WriteLine("Enter the value of Length");
length=Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter the value of Width");
width=Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Length : {0}",length);
Console.WriteLine("Width : {0}",width);
Console.WriteLine("Area of Rectangle is : {0}",GetArea());
public class ExecuteRectangle
public static void Main(string[] args)
Rectangle r = new Rectangle();