📜  弗洛伊德三角形 python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.930000             🧑  作者: Mango

代码示例1
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()