Program to enter a character and output its ASCII code
cout << "Enter the character : " << endl;
cout << "The ASCII code for " << charac << " is " << num1 << "." << endl;
This program takes in any character charac as a screen input from the user.
It then finds out its ASCII code and outputs it using the 'cout' command.
---- SAMPLE OUTPUT
The ASCII code for a is 97