Pattern 2 regarding re use of variables

why are we using nst and row as two separate variables ,we could have used row as nst because number of rows=nst

yup, there is no need of two variables. you can do it only using row.
Thanks

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.