This is a command-line utility that computes factorials.
make clean
make && sudo make install
You will need cargo
(Rust utility).
Once installed, you can run factorial n
for any non-negative integer to compute its factorial.
Examples:
$ factorial 0
1
$ factorial 5
120
$ factorial 171
mathematically infinite
I would like to thank this website for teaching me how to calculate a factorial.