Module: (Java) Nested loops


Problem

3 /8


Ladder

Problem

Given a natural number n<=9. Output a ladder from n steps, i-th step consists of numbers from 1 to i without spaces.

Input
Enter a natural number.
 
Imprint 
Print the answer to the problem.
 
Examples
# Input Output
1 3 1
12
123