Print Stars - 4
Time limit1sMemory limit128 MB
Print a right-aligned triangle of stars with N stars on the first line decreasing to 1 star on the last line.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Given an integer N, print N stars on the first line, N-1 stars on the second line, ..., and 1 star on the N-th line.
The stars on each line must be right-aligned.
Input
The first line contains an integer N. (1 ≤ N ≤ 100)
Output
Print the required stars from the first line through the N-th line.