Write a program RecursiveFactorial
that has a static method factorial()
that uses recursion to calculate a factorial of its parameter, an int n
.
Your program should also have a static main() method
that demonstrates the recursive function factorial()
.