For the series of drawing triangles using Nested Loop, we present our second problem that enhances the first problem in this post. This also accepts a number and draws a triangle pattern accordingly. Below is what should be shown when the number input is 5:
1
23
456
7890
12345