Write a code for finding the factorial of a given number.
Write a code for finding the factorial of a given number.