Please send questions to st10@humboldt.edu .
/*--------------------------------------------------
created by st10 at Wed Apr 11 15:23:58 PDT 2007
--------------------------------------------------*/
#include <iostream>
#include <cmath>
using namespace std;

/*--------------------------------------------------
 Contract: numberlist : int -> int
 Purpose: to print a numbered list from 1 to <how_many>
         to the screen, and then return <how_many>

 Examples: numberlist(4) == 4 and prints to the screen
1.
2.
3.
4.
--------------------------------------------------*/
int numberlist (int how_many)
{
    int count = 0;
    int start;

    cout << "where should the list start? ";
    cin >> start;

    while (count < how_many)
    {
        cout << (start + count) << "." << endl;
        count += 1;
    }
    return how_many;
}