create or replace function factorial(pi_n number) return number is
begin
if pi_n > 0 then
return pi_n * factorial(pi_n - 1);
else
return 1;
end if;
end;
create or replace function factorial(pi_n number) return number is
begin
if pi_n > 0 then
return pi_n * factorial(pi_n - 1);
else
return 1;
end if;
end;