cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Star Pyramid Reverse
Star Pyramid Reverse
Jan 20, 2013 at 5:28am UTC
Ahmed hassan
(1)
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 UTC
monad
(49)
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.