// This program counts to an upper limit #include using namespace std; int main() { const int UPPER_LIMIT = 5; int num = 1; // initialize the counter while (num <= UPPER_LIMIT) // test the count { cout << num << endl; num++; // increment the counter } return 0; }