From eb1a5582181bf3188f30d665a295321d36bdc795 Mon Sep 17 00:00:00 2001 From: standenboy Date: Thu, 25 Jan 2024 10:57:10 +0000 Subject: did the cover work --- comp/work/21/timestables.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 comp/work/21/timestables.py (limited to 'comp/work/21/timestables.py') 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() -- cgit v1.2.3