You are viewing a single comment's thread. Return to all comments →
Why is it n+1. Isn't that saying how long the string is so it should be n for all?
System.out.printf("%"+(n+1)+"s",str+"\n");
Seems like cookies are disabled on this browser, please enable them to open this website
Staircase
You are viewing a single comment's thread. Return to all comments →
Why is it n+1. Isn't that saying how long the string is so it should be n for all?