Triangle.

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

Input

A natural number n1n \geq 1.

Output

Print nn lines (each followed by a newline), such that the iith line contains ii asterisks.

Observation

Problem information

Author: Hubie Chen

Generation: 2026-01-25T21:57:10.368Z

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