Anonymous user
Line 5,159:
=={{header|Nyquist}}==
Iterative:▼
Recursive:▼
<lang Nyquist>(defun factorial (n)
(do ((x n (* x n)))
Line 5,165:
(setq n (1- n))))</lang>
▲Recursive:
▲Iterative:
<lang Nyquist>(defun factorial (n)
(if (= n 1)
|