http://qs1969.pair.com?node_id=652646


in reply to Re: Exponential Function Programming
in thread Exponential Function Programming

sub my_factorial { ... if($n == 0) { $r=0; } return $r; }
Your function says that 0 factorial is 0. But it's not; it's 1.