Implement a program to calculate the factorial of a number using recursion.
HardProblem Statement
Implement a program to calculate the factorial of a number using recursion.
Sample Input
int n = 5;
Sample Output
Factorial of 5: 120
Limits
Time: 2s · Memory: 256 MB