I have a problem on how to make this output:
Output1:
ENTER NO.OF ROW/S: 5
1112131415
78910
456
23
1

Output2: