Find the factorial : Python


def factorial(n):
    """ Returns the factorial of an integer
        Author: http://www.victorbyte.net """
    if n == 0:
        return 1;
    elif n > 0:
        return n * factorial(n - 1);
This entry was posted in Code samples and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *