Saturday, May 22, 2010

May i know the code on printing asterisk in a form of diamond in C++ using for loop and while?

With several 'for' loops you could do it, but why? Here's a simpler way:


cout %26lt;%26lt; " *\n * *\n* *\n * *\n *\n";

funeral flowers

No comments:

Post a Comment