blob: e5423555f53b3d0d68073899a6623312589675a5 (
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 July 4, 2017 OpenBSD
|