Output not correct

https://ide.codingblocks.com/s/645324.

sir yesterday you told me a method to solve pattern problems using nsp, nst, csp, cst.
i am not able to apply this method in this question…
kindly correct me if i am doing it wrong and help me with this question.

hi @sanyamvv33_df49c435732e7baf
The given pattern is seen as first stars then spaces and then stars .So for each row do the work of stars fist , then that of spaces and then that of stars. And then change the variables accordingly for next iterations.

refer this code -->

so sir if we want to do this using numbers instead of stars how can we do that?

what numbers?? what pattern u want to make??

https://online.codingblocks.com/app/player/220545/content/216679/4774
this one sir…

hi @sanyamvv33_df49c435732e7baf
the link is not opening… kindly ask doubt under that particular ques only…

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.