public static float Sum(int a, int b)
public static float Product(int a, int b) => a * b;
public delegate int Calculate (int n1, int n2);
static Calculate mathDel = delegate(int n1, int n2) {return n1 - n2;};
public static void Main()
Console.Write("Test Sum method: ");
Console.WriteLine(Sum(5, 7));
Console.Write("Test Product method: ");
Console.WriteLine(Product(5, 7));
Console.Write("Test mathDel with subtract method: ");
Console.WriteLine(mathDel(5, 7));
mathDel = (nm1, nm2) => {return nm1 * nm2;};
Console.Write("Test mathDel with multiply method: ");
Console.WriteLine(mathDel(5, 7));