Created
December 17, 2015 16:55
-
-
Save Nata01/97959d1227fb6edaf7c2 to your computer and use it in GitHub Desktop.
Factorial recursive
This file contains 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
function fact(n){ | |
if(n != 1) | |
return fact(n-1)*n | |
else | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment