0

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.jpg 22.18 KB
4
Contributors
5
Replies
35
Views
2 Years
Discussion Span
Last Post by basit_3
2
cout << "    *    " << endl;
cout << "  * * *  " << endl;
cout << "* * * * *" << endl;
cout << "  * * *  " << endl;
cout << "    *    " << endl;
1

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;
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.