Skip to content

Instantly share code, notes, and snippets.

@zznop
Created December 16, 2017 21:36
Show Gist options
  • Save zznop/25c26c41948bc2dbd27664e8ab693cd5 to your computer and use it in GitHub Desktop.
Save zznop/25c26c41948bc2dbd27664e8ab693cd5 to your computer and use it in GitHub Desktop.
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