Handout - Framework for Nested loops

  int inner, outer;      // the two loop control variables
  int limit1, limit2;    // the limits of the two loops

  cout << "Enter the two loop limits:  ";
  cin >> limit1 >> limit2;

  outer = 1;             // initialize the outer loop

  while (outer <= limit1)
  {
      inner = 1;         // initialize the inner loop

      while (inner <= limit2)
      {
         cout << "Hello" << endl;
         inner++;        
      }

      outer++;
  }