Created
December 16, 2017 21:36
-
-
Save zznop/25c26c41948bc2dbd27664e8ab693cd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint32_t factorial(uint32_t number) | |
{ | |
if (number <= 1) | |
{ | |
return 1; | |
} | |
return number * factorial(number -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment