To print the factorial of a number