będącym nieujemną liczbą naturalną:
Kod: Zaznacz cały
function ToJestTo(n)
{
if n < 1 then return(0) else
if n < 2 then return(1) else
return((n-1)*ToJestTo(n-2));
}
Bardzo proszę o rozwiązanie problemu.
Kod: Zaznacz cały
function ToJestTo(n)
{
if n < 1 then return(0) else
if n < 2 then return(1) else
return((n-1)*ToJestTo(n-2));
}