Skip to content

Instantly share code, notes, and snippets.

@Nata01
Created December 17, 2015 16:55
Show Gist options
  • Save Nata01/97959d1227fb6edaf7c2 to your computer and use it in GitHub Desktop.
Save Nata01/97959d1227fb6edaf7c2 to your computer and use it in GitHub Desktop.
Factorial recursive
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