C++ source code to print the pattern like the following:

*
* *
* * *
* * * *
* * * * *
* * * * * *
...