Using tertiary function :
Code:
unsigned long Factorial(unsigned long f)
{ return f==0 ? 1 : f * Factorial (f - 1); }

Last edited by anjanesh; 27Dec2004 at 17:59..