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:
Qt Code:
  1. for(t=1;t<12;t++)
  2. {
  3. //* LOPE CODE FOR SPACES
  4. for(n=12;n>t;--n)
  5. cout << "*";
  6. cout <<endl;
  7. }
  8.  
  9. cout<<endl;
To copy to clipboard, switch view to plain text mode