From 92745ab7a7a56d520cfb082968b17e34d0bb840a Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Mon, 15 Sep 2025 23:48:15 +0500 Subject: [PATCH] PythonProject --- 546456.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/546456.py b/546456.py index 14732d1..0f9e02f 100644 --- a/546456.py +++ b/546456.py @@ -1,5 +1,10 @@ -b=8;m=0 -for i in range(1,b+1): - if i%2==0: - m=m+i/2 -print(m+b) \ No newline at end of file +import sys + +def factorial(n): + if n == 0: + return 1 + else: + return n * factorial(n-1) + +sys.setrecursionlimit(10000) +print(factorial(1000)) \ No newline at end of file