• + 0 comments

    code in python 3

    def factorial(n):
        if n == 0:
            f_ct = 1
            return f_ct
        else:
            f_ct = n*factorial(n-1)
            return f_ct