I am trying to have a user input a word and a certain number of spaces before it: e.g. if the user wants 10 spaces before a word it will print:
..........foo
But without the .'s (That's just to make it clear that there is ten spaces here!). How would I go about doing this?