Illustrates how to read a character entered using the keyboard
/*
Mastering Visual C# .NET
by Jason Price, Mike Gunderloy
Publisher: Sybex;
ISBN: 0782129110
*/
/*
Example2_13.cs illustrates how to read
a character entered using the keyboard
*/
publicclass Example2_131
{
publicstaticvoid Main()
{
System.Console.Write("Enter a character: ");
char myChar = (char) System.Console.Read();
System.Console.WriteLine("You entered " + myChar);
}
}