Anonymous user
Factorial: Difference between revisions
m
→[[Factorial function#ALGOL 68]]: use a more authentic DO OD loop.
(→Iterative: factorial(0) == 1) |
m (→[[Factorial function#ALGOL 68]]: use a more authentic DO OD loop.) |
||
Line 32:
=={{header|ALGOL 68}}==
===Iterative===
PROC factorial = (INT
LONG LONG INT
z
);
===Recursive===
PROC factorial = (INT n)LONG LONG INT:
|