The Miranda Programming Language

Factorial Function in Miranda


Click below to go directly to a specific section:
Description | Source CodeProgram 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. 
[Prev] [Home]

Last modified: 02:20 PM on 11/22/1997