Number Pattern

Easy

📝 Description

Print a number pattern where each number repeats equal to its value

Input Format

A single integer n (height of pattern)

Output Format

The specified pattern

Constraints

1 ≤ n ≤ 9

🔍 Sample Input

5
            

✅ Sample Output

1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run