title: how to return int array C#
body: <p>I learn c# and i have a problem with my function.
  It should multiply elements of tab array by mnoznik and return output tab, i was trying many ways but still have no idea how to solve it.</p>
  
  <pre><code>    static int mnozenie(int[] tab, int mnoznik)
      {
          int[] wyj;
          wyj = new int[tab.Length];
          if (mnoznik != 0)
          {
              for (int i = 0; i &lt; tab.Length; i++)
                  wyj[i] = tab[i] * mnoznik;
              return wyj[];
          }
          else
              return 0;
      }
  </code></pre>