#CCBCHBA0000098. Tam giác dấu sao trái (Left Star Triangle)
Tam giác dấu sao trái (Left Star Triangle)
Left Star Triangle
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given , print rows of *; row (1-indexed) contains exactly consecutive asterisks, with no spaces.
Input
One line contains integer .
Output
Print exactly rows, row consisting of asterisks.
Subtasks
-
Subtask 1 (20%): .
-
Subtask 2 (30%): .
-
Subtask 3 (50%): .
Examples
Example 1
Input:
4
Output:
*
**
***
****
Explanation:
The number of stars on row i is i. For this sample, the input is 4; the displayed rows follow these rules exactly.
Example 2
Input:
1
Output:
*
Explanation:
The number of stars on row i is i. For this sample, the input is 1; the displayed rows follow these rules exactly.