You do know what "factorial" means, correct? It's really easy to write a routine to calculate factorials. Just remember that 0! is defined as 1. In any case, n! is only defined for non-negative integers (the closely related gamma function is defined for all real numbers). For sufficiently large values of n, n! is approximated by Stirling's approximation.
emc
Information about American English usage here and here.
Any Northeastern US area jobs? I'm currently unemployed.
| [reply] |
Oi
The factorial is up there, along with the solution.
it's not well detailed, but since I start thinking that this is an homework... I can only suggest you try to understand it, and grok it yourself.
| [reply] |