summaryrefslogtreecommitdiff
path: root/comp/work/6/5timesTable.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/6/5timesTable.py')
-rwxr-xr-xcomp/work/6/5timesTable.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/comp/work/6/5timesTable.py b/comp/work/6/5timesTable.py
new file mode 100755
index 0000000..e7be413
--- /dev/null
+++ b/comp/work/6/5timesTable.py
@@ -0,0 +1,8 @@
+num = int(input("number: "))
+
+if num < 0:
+ exit(1)
+
+for i in range(num+1):
+ if (i % 5) == 0:
+ print(i)