Creating Main Class
As usual, we start with making Main Class.
public static void Main()
{
int[] A = new int[] { 10, 15, 25 };
int[] B = new int[] { 5, 20, 30 };
int n = A.Length;
int m = B.Length;
generate(A, B, n, m);
}
We will passing both of our arrays and their length to function called generate.