This is a repo demonstrating recursive calculation of factorials.
-
git clone https://github.com/derwinmcgeary/Factorials.git
-
cd Factorials
-
git checkout master
(you can skip this the first time you clone the repo) -
javac factorial.java
java factorial
Enter positive integers and press enter. Ctrl-C to quit.
If you've already cloned and you're in the directory, skip steps 1 and 2
-
git clone https://github.com/derwinmcgeary/Factorials.git
-
cd Factorials
-
git checkout feature
-
javac factorial.java
java factorial
A table will appear, as if written by an unseen hand.