Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/yulduzcha-zinapoya

Star staircase

Easy 1000 ms 64 MB 22%
Share

A positive integer $n$ is given. Draw a staircase of $n$ lines: line $i$ contains $i$ stars (*) with no spaces between them.

A staircase of stars: each next line has one more

Input

One positive integer $n$.

Output

$n$ lines — the staircase.

Note

$1 \le n \le 50$

Examples

Input #1
4
Output #1
*
**
***
****
Input #2
1
Output #2
*

Sign in to submit a solution

Signing up is free and takes a minute.