using System;
using System.Linq;
class Program
{
static void Main()
{
int[] array1 = { 1, 2, 3, 4, 5 };
int[] array2 = { 4, 5, 6, 7, 8 };
int[] intersection = array1.Intersect(array2).ToArray();
Console.WriteLine("Intersection: " + string.Join(", ", intersection));
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: