We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thank you so much, but would you mind telling me why use PadLeft(N,' ') instead of PadLeft(N-1,' ')?
The 1st N=6 right? I tried to use N-1, but it only prints out 4 spaces on the first line.
Staircase
You are viewing a single comment's thread. Return to all comments →
Thank you so much, but would you mind telling me why use PadLeft(N,' ') instead of PadLeft(N-1,' ')? The 1st N=6 right? I tried to use N-1, but it only prints out 4 spaces on the first line.