i need to create a program that produces an amount of stairs based on the number user inputs.
for example the stairs will look like this if the user enters 4 :
X
XX
XXX
XXXX
however im having difficulty doing this , here is my code so far:
#include<iostream>
#include"110ct.h"
#include<string>
using namespace std;
int main()
{
int a;
cout << " please enter a number dude\n";
cin >> a;
for( int i = 1 ; i<=a ; ++ i)
{
cout << "x" << endl;
for(int j= 1 ; j<=a; ++j)
{
//cout <<" x" << endl;
}
}