Your function says that 0 factorial is 0. But it's not; it's 1.sub my_factorial { ... if($n == 0) { $r=0; } return $r; }
In reply to Re^2: Exponential Function Programming
by Dominus
in thread Exponential Function Programming
by Abulil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |