You are viewing a single comment's thread. Return to all comments →
The number (n-i) denotes the amount of spaces (%*s instead of %s) preceeing the string "#". So this:
printf("%*s", 10, "Abc");
Will print 10 spaces before printing a string "Abc"
That solution is great.
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 →
The number (n-i) denotes the amount of spaces (%*s instead of %s) preceeing the string "#". So this:
Will print 10 spaces before printing a string "Abc"
That solution is great.