Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesh-Chandran005 authored Dec 20, 2024
1 parent 881f560 commit b5a36c9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Day-18/ganesh18.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
grid = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]

for row in grid:
for element in row:
print(element, end=" ")
print()
n=int(input("ENTER LIMIT:"))
for i in range(1, n + 1):
for j in range(i):
print("*", end="")
print()

for i in range(1, 6):
for j in range(1, 6):
print(f"{i * j:2}", end=" ")
print()

0 comments on commit b5a36c9

Please sign in to comment.