I'm learning C# and I have a problem with a function.
It should multiply elements of the int array "tab" by the int value of "mnoznik" and return new int array "wyj".
I tried many things but I still have no idea on how to solve it.
static int mnozenie(int[] tab, int mnoznik)
{
int[] wyj;
wyj = new int[tab.Length];
if (mnoznik != 0)
{
for (int i = 0; i < tab.Length; i++)
wyj[i] = tab[i] * mnoznik;
return wyj[];
} else
return 0;
int[][]and returnnullin else part.