Printing spaces in the loop

i am not able to understand the FOR loop used for printing space , can you explain its stopping condition and also ,how does one loop prints spaces on either side of the loop

@chitranshanmol07 See as you know for the ith row number of space are n-i.
for-loop for printing space just running for a count=n-1 times and just printing the required number of spaces at the starting.

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.