Skip to content

Les11_1 #23

Description

@kostyria

num = int(input('Введите натуральное целое число: '))

def fact_to_mas(num):
mas = []
for i in range(1, num + 1):
f = fact(i)
mas.append(f)
mas.reverse()
return mas

def fact(num):
count = 1
for i in range(1, num + 1):
count += i
return count

factorial = fact_to_mas(num
)
print(factorial)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions