| Topic | Difficulty | Companies |
|---|---|---|
| Recursion and Divide & Conquer Approach | EASY |
Write a program to find the factorial of a given number n.
Problem Note
n is a non-negative integer.n is multiplication of all integers smaller than or equal to nExample
Input: n = 6
Output: 720
Explanation: Factorial of 6 is 6*5*4*3*2*1 which is 720.