R Language offers a
factorial() function that can compute the factorial of a number without writing the whole code for computing factorial.
x: The number whose factorial has to be computed.
Returns: The factorial of desired number.
24 NaN 1
1 1 2 6 24