summaryrefslogtreecommitdiff
path: root/comp/work/21/timestables.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/work/21/timestables.py')
-rw-r--r--comp/work/21/timestables.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/work/21/timestables.py b/comp/work/21/timestables.py
new file mode 100644
index 0000000..0e4c07e
--- /dev/null
+++ b/comp/work/21/timestables.py
@@ -0,0 +1,10 @@
+for i in range(1,12):
+ for j in range(1,12):
+ num = i * j
+ if num < 10:
+ print(f"00{num} ", end="")
+ elif num < 100:
+ print(f"0{num} ", end="")
+ else:
+ print(f"{num} ", end="")
+ print()