Pattern question pdf ques 8

what is the logic behind this
i’m able to print 1 n last row but could not create logic for middle rows

Hi ,
See divide the whole pattern in 7 vertical rows and try to take two variable one for number of space and other for number of star … then after each iteration decrease or increase that number as required …

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.