LearnPy Hub
← Loops problems
Hard

Floyd's Triangle

Read n and print Floyd's triangle with n rows: row i holds the next i counting numbers, starting from 1.

Input

One integer n ≥ 1.

Output

n lines.

Sample 1

Input
4
Output
1
2 3
4 5 6
7 8 9 10

Sample 2

Input
1
Output
1
solution.py
Output appears here
Floyd's Triangle · Python practice problem · LearnPy Hub