0
Help me out for this plzz
ABCDDCBA ABCCBA ABBA AA
3 Answers
+ 1
char array[4] = { A, B, C, D}
    for (I = 3; I >= 0  ; I--)
{
    for (x = 0; x < I ; x++)
    {
        cout << array[ x ];
    }
    for (x = 0; x < I ; x++)
    {
        cout << array[3 - x ];
    }
    cout << endl
+ 1
I'm not sure if this will work but it worth trying 
+ 1
#include <iostream>
using namespace std;
int main()
{
    for (int i = 3; i >= 0; i--)
    {
        for (char c = 65; c <= 65 + i; c++)
            cout << c;
        for (char c = 65 + i; c >= 65; c--)
            cout << c;
        cout << "\n";
        for (int j = 4; j > i; j--)
            cout << "  ";
    }
    return 0;
}



