/* Program 2.2.2 from C++ Programming Lecture notes  */

/* Author: Rob Miller and William Knottenbelt
   Program last changed: 30th September 2001    */

/* This program prints a table of ASCII characters. */ 

#include <iostream>
using namespace std;
        
int main()
{
  int number;
  char character;
        
  for (number = 32 ; number <= 126 ; number = number + 1) {
        
    character = number;
    cout << "The character '" << character;
    cout << "' is represented as the number ";
    cout << dec << number << " decimal or "
         << hex << number<< " hex.\n";
  }

  return 0;
}
