Doubt regarding the variable 'n'

What exactly does the variable ‘n’ denote in all the pattern lectures?

Till pattern 5, I used to think that n denotes the total no. of rows. But in this pattern n denotes the no. of stars in the 5th row, i.e, the middle row.

@saijaltripathy_e79096f8f1ec20e3 n is the number given to you …Its is not related to no. of rows or cols or stars. It is just a number so that you can print the pattern accordingly and the relation of n and the pattern changes in every question so you can’t relate it to anything.

Oh… So the value of n will be given to us in the question? And we need to derive a relation b/w n and no. of rows, etc.?

@saijaltripathy_e79096f8f1ec20e3 Yes exactly

Ok thank you so much.

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.