Skip to content

Instantly share code, notes, and snippets.

@vbkmr
Created January 5, 2020 13:30
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 vbkmr/340529a1af102d41d63f818c646a1d86 to your computer and use it in GitHub Desktop.
Save vbkmr/340529a1af102d41d63f818c646a1d86 to your computer and use it in GitHub Desktop.
int factorial(int n)
{
if(n > 1)
return n * factorial(n - 1);
else
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment