"""
printing column wise

1
12
123

"""

row = 3;
for i in range(row):
    for j in range(i+1):
        print(j+1,end=" ");
    print();

8d1cfbe98190d445db96056400b8e96c4f964d97
<mask token>

<mask token>
for i in range(row):
    for j in range(i + 1):
        print(j + 1, end=' ')
    print()

<mask token>
row = 3
for i in range(row):
    for j in range(i + 1):
        print(j + 1, end=' ')
    print()

"""
printing column wise

1
12
123

"""

row = 3;
for i in range(row):
    for j in range(i+1):
        print(j+1,end=" ");
    print();
