We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e9eec1 commit 1b0b8eaCopy full SHA for 1b0b8ea
1 file changed
Easy-Programming-Challenges/ Factorial
@@ -0,0 +1,7 @@
1
+function FirstFactorial(num) {
2
+ var factorial = 1;
3
+ for(i=num; i>=1; i--){
4
+ factorial *= i;
5
+ }
6
+ return factorial;
7
+}
0 commit comments