Number Staircase

JavaScript Easy 3 views
Back to Questions

Problem Description

Given n, print staircase pattern of numbers. Line i has numbers from 1 to i (space separated).

Input Format

One integer n.

Output Format

n lines pattern.

Sample Test Case

Input:
4
Output:
1 1 2 1 2 3 1 2 3 4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next