Skip to content

Instantly share code, notes, and snippets.

@ssube
Created November 10, 2011 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssube/1356270 to your computer and use it in GitHub Desktop.
Save ssube/1356270 to your computer and use it in GitHub Desktop.
uint64_t input = 9;
uint64_t factorial(uint64_t input)
{
uint64_t iter = input;
uint64_t output = input;
while (--iter > 1)
{
output *= iter;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment