Write a program to find the
factorial
of a given number
n
.
Problem Note
-
nis a non-negative integer. -
Factorial of a non-negative integer
nis multiplication of all integers smaller than or equal ton
Example
Input: n = 6
Output: 720
Explanation: Factorial of 6 is 6*5*4*3*2*1 which is 720.