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>

Re: Need help in c++ 80 80
cout << "    *    " << endl;
cout << "  * * *  " << endl;
cout << "* * * * *" << endl;
cout << "  * * *  " << endl;
cout << "    *    " << endl;
Re: Need help in c++ 80 80

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;
Re: Need help in c++ 80 80

you should use loop instead of large cout

Re: Need help in c++ 80 80

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

Re: Need help in c++ 80 80

oh i see thankx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.