# Number Triangles
"""
"""
# Read Number of lines
N = int(input("Enter number of Lines : "))
print("Number Triangle : ")
for n in range(1,N+1,1):
print(" "*(N-n),end="")
for k in range(1,n+1,1):
print(str(k).center(4), end="")
for k in range(n-1,0,-1):
print(str(k).center(4), end="")
print()
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu