I am trying to take the user's input and convert it into an array of ints. The problem is that when I choose 4 numbers, e.g. 2463 the output for the string is correct, but the output for the int array is incorrect and seems to be the number chosen + 48.
I'm not really sure why this is occurring. Thanks for any help given.
string userChoiceAsString;
int[] userChoice = new int[4];
userChoiceAsString = (Console.ReadLine());
for (int i = 0; i < userChoiceAsString.Length; i++)
{
userChoice[i] = userChoiceAsString[i];
Console.WriteLine(userChoice[i]);
Console.WriteLine(userChoiceAsString[i]);
}