Write a function to calculate the factorial of a number (6) using recursion.
MediumProblem Statement
Write a function to calculate the factorial of a number (6) using recursion.
Sample Input
6
Sample Output
Factorial of 6 is 720
Limits
Time: 2s · Memory: 256 MB