Recursive Factorial
Medium📝 Description
Calculate factorial using recursion
Input Format
A single integer n
Output Format
Factorial of n
Constraints
0 ≤ n ≤ 12
🔍 Sample Input
5
✅ Sample Output
120
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run