summaryrefslogtreecommitdiff
path: root/progs/a304.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a304.py')
-rw-r--r--progs/a304.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/progs/a304.py b/progs/a304.py
new file mode 100644
index 0000000..06d4c9b
--- /dev/null
+++ b/progs/a304.py
@@ -0,0 +1,7 @@
+def factorial(start,end):
+ res = 1
+ for i in range(start,end + 1):
+ res *= i
+ return res
+def sum_of_square(n):
+ return int(factorial(n + 1, 2 * n) /factorial(1, n)) \ No newline at end of file