using System;
using System.Linq;

class Program
{
    static void Main()
    {
        int[] numbers = { 1, 2, 2, 3, 3, 4, 5, 5 };

        var distinctNumbers = numbers.Distinct();

        foreach (int number in distinctNumbers)
        {
            Console.WriteLine(number);
        }
    }
}

Embed on website

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