SyntaxFix
Write A Post
Hire A Developer
Questions
You just need a loop that iterates the number of times given by n and prints a space each time. This would do:
n
while (n--) { std::cout << ' '; }