Number Triangles

 # Number Triangles

"""


"""

# Read Number of lines 

N = int(input("Enter number of Lines : "))


print("Number Triangle : ")


i = 1


for n in range(1,N+1,1):

for val in range (1,n+1,1):

print(i, end=" ")

i+=1

print()


No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu