Last active
July 12, 2020 14:01
-
-
Save codertcet111/4cf1aec708d2351a7172a94f3c9fbd08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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