Pattern practice question (ques7)

could not able to understand the logic for the row which is <1 and >n for inside loop

It’s simply a square of asterisks. You should print ‘’ first n times. Then, change row. Print a '’ then print space n - 2 times and again an asterisk and so on.

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.