Mail Archives: djgpp/1999/02/08/00:23:46
At 11:53 PM 2/7/99 -0500, you wrote:
>The problem line:
>> return passed * rcs_factorial(--passed);
>To make this code work:
>return passed * rcs_factorial(passed-1);
This might also work. :-)
return (++passed) * rcs_factorial(--passed);
I don't recommend it though. :-)
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -