QUOTE(Topher84 @ 16 Oct, 2007 - 03:06 AM)

CODE
#include <iostream>
using namespace std;
const int MAX_LINE_SIZE = 12; //size of max line of "+"
int main()
{
//go through loop for as many times as the max size of the line of +
for(int nIndex = 0; nIndex < MAX_LINE_SIZE; nIndex++)
{
//go through loop and display the + for as many times as the index of the 1st loop
for(int nIndex2 = 0; nIndex2 < nIndex; nIndex2++)
{
cout << "+"; //display +
}//end for
cout << endl; //display new line after each set of +
}//end for
}//end main
You need to use nested for loops which is an O(n^2) algorithm which is bad for large values but good for small values of nIndex. Regardless.. this does what you are wanting
Thanks alot I just could'nt figure out how to create the loop witout having the rows and columns all being the same I guess I was thinking too hard or probable not thinking at all.