title: Array - find the number that is repeated most frequently
body: <p>I'm trying to know the number that is most present in one array.</p>
  <p>Example:</p>
  <pre><code>8 4 3 8 4 4 1 5
  </code></pre>
  <p>In this case, I want the program to tell me the number is 4.</p>
  <p>This is what I've written so far, but the <code>console.Writeline</code> returns an error system.32.</p>
  <p>Can you help ?</p>
  <pre><code>int[] moda = new int[21];
  
  for (int j = 0; j &lt; avaliacoes.Length; j++)
  {
      int avaliacao = avaliacoes[j];
  
      moda[avaliacao] = moda[avaliacao] + 1;
  }
  
  Console.WriteLine(&quot;\nA moda é{0}: &quot;, moda);
  </code></pre>