Didnt get how 3 is getting printed in 3rd row becase nst/2 i.e 5/2=2.5 ,since it is int it will take 2 only

here for 3rd row nst/2 will give 2 only so how i s
3 getting printed in 3rd row?

@vinayakchavan271999,
We have got cst<=nst/2 hence, even it will still print 3 and will decrement at the next step