Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save debugmodedotnet/78da3602090c7f432dcd to your computer and use it in GitHub Desktop.
Save debugmodedotnet/78da3602090c7f432dcd to your computer and use it in GitHub Desktop.
function Factorial(n)
{
if (n <= 1) {
return 1;
}
return n * Factorial(n - 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment