Skip to content

Instantly share code, notes, and snippets.

@completejavascript
Created September 15, 2018 01:18
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 completejavascript/58ec0635e9897be421a5ea29d4196eb0 to your computer and use it in GitHub Desktop.
Save completejavascript/58ec0635e9897be421a5ea29d4196eb0 to your computer and use it in GitHub Desktop.
int Factorial(int n)
{
int r = 1;
for(int i = 1; i <= n; i++)
r *= i;
return r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment