Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

triangle pattern in python

n=int(input("n:"))
for i in range(0,n+1):
    for j in range(0,i+1):
        print(j,end="  ")
    print()
 
PREVIOUS NEXT
Tagged: #triangle #pattern #python
ADD COMMENT
Topic
Name
8+7 =