The Miranda Programming Language
Factorial Function in Miranda
Click below to go directly to a specific section:
Description | Source Code
| Program Notes
Description
This example computes the factorial of a number.
Source Code
fac 0 = 1
fac (n+1) = (n+1)*fac n
Program Notes
Due to the unavailability of a Miranda compiler, an executable program
is not available.
Last modified: 02:20 PM on 11/22/1997