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
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.