blob: cdc019ed83311b7a8fe0c18b6cd202e27b2075d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FACTORIAL(1) General Commands Manual FACTORIAL(1)
NNAAMMEE
ffaaccttoorriiaall - factorial sequence
DDEESSCCRRIIPPTTIIOONN
9! = 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 = 362880
8! = 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 = 40320
7! = 7 * 6 * 5 * 4 * 3 * 2 * 1 = 5040
6! = 6 * 5 * 4 * 3 * 2 * 1 = 720
5! = 5 * 4 * 3 * 2 * 1 = 120
4! = 4 * 3 * 2 * 1 = 24
3! = 3 * 2 * 1 = 6
2! = 2 * 1 = 2
1! = 1
0! = 1
OpenBSD December 30, 2014 OpenBSD
|