Your ice candy melts one bite at a time on a hot summer day. Print an upside-down star triangle: the first row has N stars, the next has N-1, down to 1 star.
Input Format A single integer N.
Output Format Print N lines. Line i (starting from 1) has N - i + 1 stars with no spaces.
Constraints • 1 ≤ N ≤ 50
Examples
Example 1
Input
4
Output
****
***
**
*
Explanation 4 stars, then 3, then 2, then 1.
Example 2
Input
1
Output
*
Explanation A single star.
Example 3
Input
3
Output
***
**
*
Explanation 3, 2, 1 stars.
Acceptance—
Accepted0
Submissions0
Auto-save
SavedLn 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
****
***
**
*
No results yet
Run your code to test it against the sample cases.