hello friends i need help in c++ programe i want to print the diamond of the type shown in picture any one help me in this regards............................

if possible then send me email at <snipped email>

Edited by deceptikon: Removed email address

Attachments
4
Contributors
5
Replies
35
Views
3 Years
Discussion Span
Last Post by basit_3
cout << "    *    " << endl;
cout << "  * * *  " << endl;
cout << "* * * * *" << endl;
cout << "  * * *  " << endl;
cout << "    *    " << endl;


Hmm, not bad, but according to the OP's drawing could it not be something like this?

cout << "       /|\\ " << endl;
cout << "      / | \\ " << endl;
cout << "     / *|* \\ " << endl;
cout << "    / * | * \\ " << endl;
cout << "   / * *|* * \\ " << endl;
cout << "  / * * | * * \\ " << endl;
cout << " / * * *|* * * \\ " << endl;
cout << "< * * * | * * * >" << endl;
cout << " \\ * * *|* * * / " << endl;
cout << "  \\ * * | * * / " << endl;
cout << "   \\ * *|* * / " << endl;
cout << "    \\ * | * / " << endl;
cout << "     \\ *|* / " << endl;
cout << "      \\ | / " << endl;
cout << "       \\|/ " << endl;


you should use loop instead of large cout

@basit_3: We know..., you should read between the lines. :)

oh i see thankx

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.