Triangle of numbers
Given a single integer n, you are asked to draw a triangle of numbers where each row will have 1 2 3 ... row_number elements in it.
Input | Output |
|---|---|
4 | 1 |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB
Given a single integer n, you are asked to draw a triangle of numbers where each row will have 1 2 3 ... row_number elements in it.
Input | Output |
|---|---|
4 | 1 |
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB