Factorial: Difference between revisions

Content added Content deleted
No edit summary
Line 4,654: Line 4,654:
in out
in out
</syntaxhighlight>
</syntaxhighlight>





=={{header|GAP}}==
=={{header|GAP}}==
Line 6,126: Line 6,129:
// iterative
// iterative
function factorialit n
function factorialit n
put 1 into f
put 1 into f
if n > 1 then
if n > 1 then
repeat with i = 1 to n
repeat with i = 1 to n