Triangle Star Pattern

Easy
0/40
10 upvotes
Asked in companies
Incedo Inc.Unthinkable SolutionsOodles Technologies Pvt Ltd

Problem statement

Pattern for N = 4
*
**
***
****
Note : There are no spaces between the stars (*).
Detailed explanation ( Input/output format, Notes, Images )
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines
Constraints
0 <= N <= 50
Sample Input 1:
5
Sample Output 1:
*
**
***
****
*****
Sample Input 2:
6
Sample Output 2:
*
**
***
****
*****
******
Approaches (1)
Time Complexity
Space Complexity
Code Solution
(100% EXP penalty)
Triangle Star Pattern
Full screen
Console