leo@philmds.UUCP (Leo de Wit) (08/03/88)
In article <4790@pasteur.Berkeley.EDU> anton@postgres.UUCP (Jeff Anton) writes: |/* recursive and reentrant */ |unsigned |fact1(i) |unsigned i; |{ | if (i < 3) | return(i); | return (i*fact1(i-1)); |} And roy@phri.UUCP (Roy Smith) writes in his article: | fact (i) | int i; | { | return (i<2 ? i : i*fact(i-1)); | } Both are obviously implementing a faculty function; note that the faculty of 0 is 1, not 0. Leo.