using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] array = { 2, 3, 4, 2, 1, 3, 4 };
        int[] uniqueArray = array.Distinct().ToArray();
        Console.WriteLine("Unique Array: " + string.Join(", ", uniqueArray));
    }
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: