summaryrefslogtreecommitdiff
path: root/comp/hw/109/range.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/hw/109/range.py')
-rw-r--r--comp/hw/109/range.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/comp/hw/109/range.py b/comp/hw/109/range.py
new file mode 100644
index 0000000..49b3a7a
--- /dev/null
+++ b/comp/hw/109/range.py
@@ -0,0 +1,8 @@
+import sys
+
+num1 = int(input("num 1: "))
+num2 = int(input("num 2: "))
+
+for i in range(num1, num2+1):
+ sys.stdout.write(f" {str(i)}")
+print()