Created
September 15, 2018 01:18
-
-
Save completejavascript/58ec0635e9897be421a5ea29d4196eb0 to your computer and use it in GitHub Desktop.
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
int Factorial(int n) | |
{ | |
int r = 1; | |
for(int i = 1; i <= n; i++) | |
r *= i; | |
return r; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment