Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #453 from akshat2203/main
Browse files Browse the repository at this point in the history
Create Pyramid horizontal number Pattern
  • Loading branch information
Almas-Ali authored Nov 4, 2022
2 parents 7679b0e + 585e747 commit a3928d7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Python/Pyramid_horizontal_number_Pattern.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a3928d7

Please sign in to comment.