Triangle.

Write a program that, given a number n, prints a triangle of size n.

Input

A natural number n ≥ 1.

Output

Print n lines (each followed by a newline), such that the ith line
contains i asterisks.

Observation

Problem information

Author: Hubie Chen

Generation: 2026-01-25T22:04:35.341Z

© Jutge.org, 2006–2026.
https://jutge.org
