public static void Main()
Console.Write("Enter the character: ");
string character = Console.ReadLine();
byte[] charByte = new byte[character.Length];
for (int i = 0; i <= character.Length - 1; i++ ) {
charByte = Encoding.ASCII.GetBytes(character.ToString());
Console.Write("{0} = {0}", character[i], (int)charByte[i]);