Created
February 2, 2019 01:01
-
-
Save parzibyte/9cf631f903eb81e2f60992a81851942d 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
class Main { | |
public static void main(String[] args) { | |
for(long i = 0; i < 20; i++){ | |
System.out.println(String.format("Calculando factorial de %d. Iterativo: %d | Recursivo: %d", i, factorial(i), factorialRecursivo(i))); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment