Star Printing - 1
Time limit1sMemory limit128 MB
Given N, print a triangle pattern where line i contains exactly i stars.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Given a positive integer N, print 1 star on the first line, 2 stars on the second line, and so on until the N-th line, which must contain N stars.
Input
The first line contains an integer N. N is between 1 and 100, inclusive.
Output
Print N lines in order. The i-th line must contain exactly i stars.