Pseudocode doubt issue

Write pseudocode to print the following pattern 1 232 34543 4567654 567898765

What should be the approach behind pattern problems?
In this ques. I observe that

  1. the number is the same as seen from left to right and right to left
  2. 2nd number has 3 digits, 3rd has 5 , 4th has 7 and so on
  3. value of digits are incremented linearly and decremented linearly
    However, I am not to able to write a pseudocode. Pls help

hi @srijan137b_bcd747ec978a5ba8
refer this code -->


I hope it will clear your doubt…

hi @srijan137b_bcd747ec978a5ba8
I hope it’s clear now??

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.

Kindly explain the code…

ok so first outer loop is run for n times as we need n rows in o/p… first inner loop prints the first half of triangle and second inner loop prints the second half of triangle…

@srijan137b_bcd747ec978a5ba8
is there anything else or shall i mark the doubt as resolved???

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.