Query regarding Pattern Problem in Programming Fundamentals-1

Hello,
I have recently watched the video in programming fundamentals-1 module regarding the “Pattern problem”. Actually, I couldn’t comprehend and understand the methodology clearly as the program utilises 4 loops, which made it a little dificult to grasp (as I haven’t seen 4 loops in earlier programs, so was confused in the pattern problem).

My question here please is, that in case a pattern problem is given, what is the best way to analyse it?
Specifically, is a loop needed everytime there is e.g. a new line, e.g. spaces, e.g. increasing numbers, e.g. decreasing numbers (as described in this video)? Like when should I use a loop please in such problems.

Thanks a lot for your guidance!
Joyjit

Hey @joyjitece
There is generally 1 outer loop for different rows
and can have upto 4 inner 4 loops
1for prinitng initial space (if any)
1 for prinitng increasing pattern
1 dor intermediate spaces /(if any)
1 for decreasing pattern(if any)

And there is no fixed rule to solve pattern problems, you have to solve it by observing pattern