summaryrefslogtreecommitdiff
path: root/progs/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/test.py')
-rw-r--r--progs/test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/progs/test.py b/progs/test.py
index 4ccfb1a..ef59445 100644
--- a/progs/test.py
+++ b/progs/test.py
@@ -1,3 +1,8 @@
+n = int(input())
+x = int(input())
m = 1
-for i in range(10):
- m = m + 1
+while n > 1:
+ tmp = 2 * x
+ m = m * tmp
+ n = n - 1
+print(m + tmp)