lower half of parallelogram???

this is what i have so far:

#include <iostream>

using namespace std;

int main()
{
int space;
char c;

cout<<"This program will output a parallelogram"<<endl<<endl;
cout<<"How long do you want each side to be?"<<endl;
cin>>space;
cout<<"Please enter the character you want it to be made of: "<<endl;
cin>>c;

int row=1;
for(int x=0;x<space;x++)
{
for(int j=0;j<row;j++)
{
cout<<c;
}
cout<<endl;
row++;
}

}


I have to do the rest using a while or dowhile loop which is what is throwing me off. Everything i have tried so far ends up turning into an infinite loop and causes my computer to freeze.
what exactly is the problem? the code seems to be working fine...
Topic archived. No new replies allowed.