Questions
Computes factorial(N) and fibonacci(N) for integers N entered by the user, as a demonstration of recursion. And save the results using BigInteger.
1. Codes
1 | import java.math.BigInteger; |
2. Outputs
1 | Enter a postive integer, or -1 to end: 20 |