Pattern mountain

i have problem in printing
1
2 1
321
4321
this part

@Ankur752,
Please share your code. https://ide.codingblocks.com/

@Ankur752,
I have corrected your code: https://ide.codingblocks.com/s/194306
You were taking unnecessary variables. And this loop: while(st>=nst)
was taking your code into an infinite loop

Thank you sir , i didn’t posted the corrected code while trying to run the code

@Ankur752,
Great. If your doubt is resolved, kindly mark the doubt as resolved. Thanks.