RosettaCodeData/Task/Factorial/Mathematica/factorial-3.math

2 lines
62 B
Plaintext

factorial[n_Integer] := Block[{i}, Times @@ Table[i, {i, n}]]