This Is How I managed To Solve.
Code:
#include <iostream>#include <string>
using namespace std;
int main()
{
// Showing message to user
cout << "Hey, enter the amount of steps you wish to draw: " ;
int stepsn; // Variable that will store the user value
cin >> stepsn; // stores the value from user
cout << "" << endl;
// Default step size, is simply empty
string steps = "";
// A loop that runs depending on user input
for(int i=0 ; i < stepsn ; i++)
{
// Takes the last size of variable steps and stores that info into new variable called stepz
string stepsz(steps.size(), '*');
// Here, it combines last step size, plus an additional * is added and applies to the original steps variable
steps = stepsz + "*";
// Finally drawn on screen everytime loop runs
cout << steps << endl;
}
// This code is just to stop the program from closing ..
int x;
cin >> x;
return 0;
}