title: Cannot convert void to int[] and must have return type
body: <p>I've written a piece of code but there are errors with it and I can't figure out how to fix them since I'm still new to programming.</p>
  
  <pre><code>    static public int prodtab(int[] base1)
      {
          int output = 1;
  
          for (int i = 0; i &lt; base1.Length; i++)
          {
              output *= base1[i];
          }
          return output;
      }
      static public void annuletab(int[] base1, int pos1, int pos2)
      {
          base1 = base1.Where((nimporte, i) =&gt; i &lt; pos1 || i &gt; pos2).ToArray();
      }
      static void Main(string[] args)
      {
          Console.WriteLine("Entrez la premiere position");
          position1 = Convert.ToInt32(Console.ReadLine());
          Console.WriteLine("Entrez la deuxieme position");
          position2 = Convert.ToInt32(Console.ReadLine());
          int[] newvec = annuletab(vec, position1, position2);
  </code></pre>
  
  <p>Can someone figure what the error is?</p>