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

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

/* This program converts characters to integers. */ 

#include <iostream>

using namespace std;

int main()
{
	int number;
	char character;
	
	cout << "Type in a character:\n";
	cin >> character;
	
	number = character;
	
	cout << "The character '" << character;
	cout << "' is represented as the number ";
	cout << number << " in the computer.\n";
	
	return 0;
}
