top of page
Admin

C# Console.Read()

This code only allows you input one character.


Console.WriteLine("Input a character:");
int ch = Console.Read();
Console.Write("Character in  ASCII code: {0}", ch);

For example when you type A

the output will be 65 in ASCII code.


0 views0 comments

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page