Fact Function

Purpose

Returns the factorial of a natural number.

Syntax

Fact (n)

n:integer expression

Description

Fact (n) returns the factorial of a natural number n (n!). A factorial is the product of the first n natural numbers, where 0! = 1.

Example

OpenW # 1

Print Fact(6) // 6! is 720

See Also

Combin(), Variat()

{Created by Sjouke Hamstra; Last updated: 05/10/2014 by James Gaite}