Skip to content

Instantly share code, notes, and snippets.

@paulohenriquesn
Created July 23, 2018 13:14
Show Gist options
  • Save paulohenriquesn/68fcd9e33dc449cb0311b0a93003a656 to your computer and use it in GitHub Desktop.
Save paulohenriquesn/68fcd9e33dc449cb0311b0a93003a656 to your computer and use it in GitHub Desktop.
function FirstFactorial(num) {
memory = num
c = memory-1
for(i=0;i<num;i++){
if(c != 0){
memory = memory * c
c = c -1
}
}
return memory;
}
FirstFactorial(readline());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment