Star Pyramid Reverse

Jan 20, 2013 at 5:28am
hello every one . I am new to programming can any one help me making star pyramid in reverse order . i.e it will look something like this....

*******
*****
***
*
Jan 20, 2013 at 8:42am
This might help for outputting the asterisks:
http://www.cplusplus.com/reference/string/string/string/

Specifically this line from the example: std::string s6 (10, 'x');

I also suggest using a for loop or while loop due to the repetitive nature of your problem:
http://www.cplusplus.com/doc/tutorial/control/
Topic archived. No new replies allowed.