Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
char key = Console.ReadKey();
if(key == 'A')
{
Console.WriteLine("You pressed A");
}
else
{
Console.WriteLine("You didn't press A");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment