From 585e7475ae4f313121d673a974638197c9aef11f Mon Sep 17 00:00:00 2001 From: Akshat Shah <47106886+akshat2203@users.noreply.github.com> Date: Fri, 28 Oct 2022 19:41:04 +0530 Subject: [PATCH] Create Pyramid horizontal number Pattern --- Python/Pyramid_horizontal_number_Pattern.py | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Python/Pyramid_horizontal_number_Pattern.py diff --git a/Python/Pyramid_horizontal_number_Pattern.py b/Python/Pyramid_horizontal_number_Pattern.py new file mode 100644 index 0000000..a83ee01 --- /dev/null +++ b/Python/Pyramid_horizontal_number_Pattern.py @@ -0,0 +1,23 @@ +# Github Username: akshat2203 +# Github Name: Akshat Shah +# Github Url: https://github.com/akshat2203 + +# Pyramid of horizontal tables of numbers +rows = 10 +for i in range(1, rows + 1): + for j in range(1, i + 1): + print(i * j, end=' ') + print() + +# Output + +# 1 +# 2 4 +# 3 6 9 +# 4 8 12 16 +# 5 10 15 20 25 +# 6 12 18 24 30 36 +# 7 14 21 28 35 42 49 +# 8 16 24 32 40 48 56 64 +# 9 18 27 36 45 54 63 72 81 +# 10 20 30 40 50 60 70 80 90 100