Mountain problem

in this problem, how are we giving loop for space?
from where to where?

Hello @nidhi_1609,
If your outer loop is running for i=1 to i=n,
then try printing spaces for j = 1 to j = 2*(n-i)-1.