I am trying to write a program that does this:
*
**
***
****
*****
******
*******
I have most of the code. I can't figure how to produce the spaces. Can I see some code to produce it ?
The code I have so far is:
Code:
for(t=1;t<12;t++) { //* LOPE CODE FOR SPACES for(n=12;n>t;--n) cout << "*"; cout <<endl; } cout<<endl;