Description

說到程式的練習題,除了超・經典的 Hello, world 之外,「判斷閏年」、「判斷質數」、「$3n+1$」都是大家寫到爛掉的經典範例。雖然看起來很沒用,但這些練習還是很重要!
啊,因為想不太到題目敘述了,所以我們來印三角形吧!

Input Format

一個整數 $n$ 代表要印一個高度為 $n$ 的三角形

Output Format

請輸出 $n$ 行,第 $i$ 行請印出 $i$ 個星號(*)

Sample Input 1

3

Sample Output 1

*
**
***

Sample Input 2

5

Sample Output 2

*
**
***
****
*****

Hints

Problem Source

NEOJ Problem 3020

Subtasks

No. Testdata Range Constraints Score
1 0 10
2 1 10
3 2 10
4 3 10
5 4 10
6 5 10
7 6 10
8 7 10
9 8 10
10 9 10

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1
1 1000 65536 65536 2
2 1000 65536 65536 3
3 1000 65536 65536 4
4 1000 65536 65536 5
5 1000 65536 65536 6
6 1000 65536 65536 7
7 1000 65536 65536 8
8 1000 65536 65536 9
9 1000 65536 65536 10