Number Pyramid Pattern Problem

Number Pyramid Pattern Problem — ExecCode School DSA Practice

Solve the Number Pyramid Pattern problem on ExecCode. Free online school DSA practice in Patterns. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a whole number for the problem Number Pyramid Pattern. Your task is to solve Number Pyramid Pattern. Print a number pyramid pattern up to N rows. Each row i should contain numbers from 1 to i.

Examples

Input 4; Output 1 12 123 Input 4; Output 1 12 123 1234

Constraints

1 <= N <= 20

Practice Number Pyramid Pattern free on ExecCode. Browse DSA problems, topic map, and placement guides.