draw pattern upword and downword



---------------------------------------------------------------------------------

 #include <iostream>

using namespace std;

int main()

{

    const int x = 0,y = 10;


    char symbol = '+';


    cout << "\n      Patter A: " << endl;


    for(int i = x; i < y; i++)

    {

        for(int j = x; j <= i; j++)

        {

            cout << symbol;

        }

        cout << endl;

    }


    cout << "\n      Patter B: " << endl;

    for(int i = x; i < y; i++)

    {

        for(int j = y; j > i; j--)

        {

            cout << symbol;

        }

        cout << endl;

    }


    return 0;

}