SOURCE FILE: 030_loopSamp01.cpp


/* 
      This is a program that writes an increasing list of integers,
      starting at one, and increasing by one at each step, until 
      reaching 15.
*/

/* ****************************** */

#include <iostream> 
using namespace std ; 

int main (void) 
{
   int lastNum, counter ;

   cout << endl ;
   cout << "This program will  print an increasing sequence of\n" ;
   cout << "positive integers.\n\n" ;

   lastNum = 15 ; 
   counter = 1 ;

   while (counter <= lastNum)
   {
      cout << endl << counter  ;
      counter++ ;
   }
   cout << endl << endl ;

   return 0; 
}

/* ****************************** */