Created
January 30, 2015 23:15
-
-
Save bnb/8e85d96acf96b96a3a49 to your computer and use it in GitHub Desktop.
CoderByte Challenge 2
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
| function FirstFactorial(num) { | |
| var finalNum = 0; | |
| for(i = num; i < num; i--) [ | |
| finalNum *= i; | |
| } | |
| // code goes here | |
| return finalNum; | |
| } | |
| // keep this function call here | |
| // to see how to enter arguments in JavaScript scroll down | |
| FirstFactorial(readline()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment