-
-
Save oppahero/dd22f2ffb72b2559a7d87bb8c7d111f5 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 public static Operaciones.factorial (int n) | |
int factorial = 1; | |
if (n < 1) return 0; //El número debe ser positivo mayor a cero. | |
for (int i=1; i <= n ; i++) | |
factorial = factorial *1 ; | |
return factorial; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment