tak jak w tytule, jakieś wskazówki?
0
1
To na jakąś uczelnię?
public class Program
{
static double Pomnoz1(double[] tab, int i)
{
if (i == tab.Length - 1) return tab[i];
return tab[i] * Pomnoz1(tab, i + 1);
}
public static void Main()
{
var doubles = new [] { 1.0, 2.0, 3.0 };
Console.WriteLine(Pomnoz1(doubles, 0)); // 6
}
}
0
już rozwiązane!
tak tak