Triangle Number Pattern

Easy
0/40
1 upvote
Asked in company
Newgen Software

Problem statement

Pattern for N = 4
1
22
333
4444
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:
1
22
333
4444
55555
Sample Input 2:
6
Sample Output 2:
1
22
333
4444
55555
666666
Approaches (1)
Time Complexity
Space Complexity
Code Solution
(100% EXP penalty)
Triangle Number Pattern
Full screen
Console