//Dione Torrevillas                 CS1A                 Chapter 5, P. 298, #23
//
/**********************************************************************
 *
 * PATTERN DISPLAYS
 *
 * This program uses loops to display two patterns made from
 * plus signs. Pattern A increases from one plus sign to ten.
 * Pattern B decreases from ten plus signs back to one.
 *
 * INPUT
 *   None
 *
 * OUTPUT
 *   Pattern A     : Increasing rows of plus signs
 *   Pattern B     : Decreasing rows of plus signs
 *
 **********************************************************************/

#include <iostream>
using namespace std;

int main()
{
    int row;       //CALC - Controls the number of rows
    int column;    //CALC - Controls the number of plus signs

    //
    // Display Pattern A
    //
    cout << "Pattern A" << endl;

    for (row = 1; row <= 10; row++)
    {
        for (column = 1; column <= row; column++)
        {
            cout << "+";
        }

        cout << endl;
    }

    cout << endl;

    //
    // Display Pattern B
    //
    cout << "Pattern B" << endl;

    for (row = 10; row >= 1; row--)
    {
        for (column = 1; column <= row; column++)
        {
            cout << "+";
        }

        cout << endl;
    }

    return 0;
}