Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codertcet111/4cf1aec708d2351a7172a94f3c9fbd08 to your computer and use it in GitHub Desktop.
Save codertcet111/4cf1aec708d2351a7172a94f3c9fbd08 to your computer and use it in GitHub Desktop.
int factorial ( int n )
{
if ( n == 0 )
return 1;
else
return ( n * factorial ( n-1 ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment