// asterisksRectangle3.cpp
// Displays a few rectangles of asterisks, pausing between rectangles.
// Demonstrates nested loops.

#include <iostream>
#include <string>

using namespace std;

int main()
{
   // Display a rectangle of 5 rows, 15 asterisks each:
   for ( int row = 0; row < 5; row++ )  {
      for ( int column = 0; column < 15; column++ )
         cout << " *";
      cout << endl;
   }  // for row

   // Pause:
   cout << endl << "Press ENTER to continue....";
   string line;
   getline(cin, line);
   cout << endl;

   // Display a rectangle of 7 rows, 20 asterisks each:
   for ( int row = 0; row < 7; row++ )  {
      for ( int column = 0; column < 20; column++ )
         cout << " *";
      cout << endl;
   }  // for row

   // Pause:
   cout << endl << "Press ENTER to continue....";
   getline(cin, line);
   cout << endl;

   // Display a rectangle of 10 rows, 25 asterisks each:
   for ( int row = 0; row < 10; row++ )  {
      for ( int column = 0; column < 25; column++ )
         cout << " *";
      cout << endl;
   }  // for row

   return 0;
}  // function main