using System;
//public delegate int RectDelegate(int length, int breadth); //Custom delegate no longer needed as we are using Action
public class Program
{
public static void Main()
Action<int, int> rectDel = (length, breadth) => //Custom delegate replaced by Generic delegate Func
{ //Changed the method into one that doesn't return a value
Console.WriteLine("Area of the rectangle is: " + (length * breadth));
};
rectDel(2, 8);
}