Still looking for a sponsor Max Paulousky is looking for a Silverlight/.Net job in the Commonwealth

Single-Line Solution: Factorial

Recently my colleagues started a dispute whether it is possible to calculate a factorial using just one line of code. In mathematics, the factorial of a non-negative integer n, denoted by n!, is the product of all positive integers less than or equal to n. (by Wikipedia) One line means a line that ends with a semicolon: bla-bla-bla; Of course, following sample is not the single-row code: for(;;;) bla-bla-bla; First idea is using recursion (let’s arrange, it is the single-line...