I have a char array and I want to assign values from the console. Here\'s my code:
char
char[] input = new char[n]; for (int i = 0; i < input.Leng
Grab the first character of the String being returned by Console.ReadLine()
char[] input = new char[n]; for (int i = 0; i < input.Length; i++) { input[i] = Console.ReadLine()[0]; }
This will throw away all user input other than the first character.