Why we took i>=1 and i<n-1

if (i >= 1 && i < n - 1) {
nst = 1; // taking number of stars as 1 for in between rows
i cant undertand the consitions of the for loop as why i >=1 and i<n-1 is taken

Hi Kashish,
Please share your code, so that I can review.

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.