Skip to content

Latest commit

 

History

History

factorial

Factorial

Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example factorial of 6 is 6*5*4*3*2*1 which is 720.

Example:

Input : 4
Output : 24