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
4

Output
1
12
123
1234
 
To check your solution you need to sign in
Sign in to continue