summaryrefslogtreecommitdiff
path: root/factorial.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'factorial.hpp')
-rw-r--r--factorial.hpp9
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);
- }
-}