Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

floyd triangle python

rows = int(input())
number = 1

i = 1
while(i <= rows):
    j = 1
    while(j <= i):        
        print(number, end = '  ')
        number = number + 1
        j = j + 1
    i = i + 1
    print()
 
PREVIOUS NEXT
Tagged: #floyd #triangle #python
ADD COMMENT
Topic
Name
8+8 =