5. Loop Structures

int i;                  Loops covering i = 0, 1, 2, 3, 4
...
i = 0;                  i = 0;
while( i < 5)           do                      for( i = 0; i < 5; ++i)
{                       {                       {
  ...use i...             ...use i...             ...use i...

  ++i;                    ++i;

}                       } while( i < 5);        }
P! page 107, 6:
  int k, j, count = 0;
  for( k = -1; k <= 3; k++)         k = -1, 0, 1, 2, 3
    for( j = 3; j >= 1; j--)        j = 3, 2, 1
      count++                       5 k's, 3 j's, i.e. 15 times

Practice! - note errata #4