Assignment First Question

I am not able to write the pseudocode for first pattern. Please help me with the logic.

Hey @AtulAggarwal
Can you post the question/the pattern?

This is the pattern:
1
232
34543
4567654
567898765

@AtulAggarwal
See basically you’ll be given n, which is 5 here
so you’ll run a loop for i = 1 to n, which will print the n rows(here 5 rows),
for each ith row,
consider a counter p which starts from i, (example for 3rd row, counter starts from 3), print counter i times starting from i, increasing it everytime, like for row 3, print 3, 4, 5(3 times, increasing one everytime), then print counter i-1 times, decreasing by 1 everytime, (for example for 3, the counter was on 5, print it i-1 i.e 2 times, decreasing by 1, it will print 4 3, for the 3rd row,
so the third row gets printed like 34543, similarly other rows.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.