Growing triangle

You are asked to draw a triangle of height n where the numbers always increase by 1.
Input
Output
4
1 2 3 4 5 6 7 8 9 10
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue