previous
|
index
|
next
Example: Factorial
n! = n × (n-1) × (n-2) × ... 2 × 1
For example,
4! = 4 × 3 × 2 × 1 = 24
Of course
4!
is easy in Scheme:
> (* 4 3 2 1) 24
previous
|
index
|
next