<filename>records/12-24/asdas.py<gh_stars>10-100
__author__ = '<NAME>'
__email__ = '<EMAIL>'
__date__ = '12/24/2020 9:38 PM'


def func1(num):
    res = 1
    while num > 0:
        res *= num
        num -= 1

    return res


print(func1(5))


def func2(num):
    if num == 1:
        return 1
    return num * func2(num - 1)


print(func2(5))

<filename>records/12-24/asdas.py<gh_stars>10-100
__author__ = '<NAME>'
__email__ = '<EMAIL>'
__date__ = '12/24/2020 9:38 PM'


def func1(num):
    res = 1
    while num > 0:
        res *= num
        num -= 1

    return res


print(func1(5))


def func2(num):
    if num == 1:
        return 1
    return num * func2(num - 1)


print(func2(5))
