To find the top 3 maximum repeated numbers in a integer array
<p>I want to find the top 3 maximum repeated numbers in a Integer array?</p>

<p>Below is the piece of code which I have tried but I couldn't find the desired result:</p>

<pre><code>static void Main(string[] args)
    {

      int[,] numbers = {
                           {1, 2, 0, 6 },
                           {5, 6, 7, 0 },
                           {9, 3, 6, 2 },
                           {6, 4, 8, 1 }
                        };           
        int count = 0;
        List&lt;int&gt; checkedNumbers = new List&lt;int&gt;();
        foreach (int t in numbers)
        {
            if (!checkedNumbers.Contains(t))
            {
               foreach (int m in numbers)                   
               {
                   if (m == t)                        
                      {   
                         count++;
                      }
                }
                Console.WriteLine("Number {0} is Repeated {1} Times ", t, count);
               count = 0;
                checkedNumbers.Add(t);
            }           
       }
        Console.ReadLine();
    }
</code></pre>
