Answers for "input character in c#"

C#
2

c# char input

// C# program to input a character
// using Convert.ToChar()

char ch;

//input character 
Console.Write("Enter a character: ");
ch = Convert.ToChar(Console.ReadLine());

//printing the input character
Console.WriteLine("Input character is {0}", ch);
Posted by: Guest on October-12-2021
0

c# char input

input[i] = Console.ReadKey().KeyChar;
Posted by: Guest on March-14-2022

C# Answers by Framework

Browse Popular Code Answers by Language