diff options
Diffstat (limited to 'factorial.hpp')
-rw-r--r-- | factorial.hpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/factorial.hpp b/factorial.hpp deleted file mode 100644 index ddc0bac..0000000 --- a/factorial.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#pragma once - -long unsigned factorial(unsigned p) { - if (p == 0) { - return 1; - } else { - return p * factorial(p - 1); - } -} |