hi hunterb24! actually u shud have the for loop like this...
1 2 3 4 5 6
for(int i=1;i<=n;i++) //i decides the number of lines and n is the input from the user
{
for(int j=1;j<=i;j++)
cout<<"* ";
cout<<endl;
}
if u include the above loop, with changes ofcourse according to ur program, u wud get this O/P(depends upon value of n according to my program. the below O/p is for n=4):
ok so u want it to be centers right? its actually very simple... i expect u wud know about the setw() function. no big changes to our program, just one line to be added to make it centred! first #include <iomanip.h>. actually i insist u not to use THREE for loops for this pattern printing... leads to a lot of confusion... so just try to chnge ur program like how i posted, the very first post of mine... have the control variables in terms of i and j... that reduces time of typing the variable names and doesnt have any special characters or confusion between uppercase or lowercase(hope u understood what i blabbered here :P )... well am gonna post my code, try changing the control variables to ur program or BETTER u follow the method i do cause its a lot more easier than ur way of thinking. its too simple just add very little things...