I'm doing exercises from Accelerated C++, and one exercise consists of making a triangle. I don't want you to tell me how to make the entire triangle, but please help me here.
By incrementing "s", I want to add more and more whitespace between the asterisks for each line.
The output I get looks like this:
**
**
**
**
**
**
**
Well, maybe you should construct the string inside the loop.
You're now creating a string consisting of zero spaces, so that output is to be expected...