diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2024-04-10 14:22:20 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2024-04-10 14:22:20 +0200 |
commit | 39b71d6cf10615dfb16cc72cf2c1bb859d9a6892 (patch) | |
tree | 9293b012fb26985ab18f8a0a4006bdd3d74bc832 /factorial.hpp | |
parent | 12668d99bd872539ff74d82a966ed049e66acde9 (diff) | |
download | code-39b71d6cf10615dfb16cc72cf2c1bb859d9a6892.tar.gz code-39b71d6cf10615dfb16cc72cf2c1bb859d9a6892.tar.bz2 code-39b71d6cf10615dfb16cc72cf2c1bb859d9a6892.zip |
some small changes.
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); - } -} |