can someone please help me with this stupid thing.. I was not born to be a programmer..
i have to make this
*
**
***
****
*****
using a loop thing..
for (int k=0; k<5; k++)
for (int x=-1; x<k; x++)
cout << "*";
cout << endl;
I dont get how to put the spaces in to make it look like a pyramid though.. you guys will say "im not doing your homework for you".. but I could use the help.. if you dont help me Ill fail college and work at mcdonalds for the rest of my life..
sigh



LinkBack URL
About LinkBacks



This works just fine, though I question whether it would be accepted.