I am trying to take a string of digits, and add them to a list (so i can then multiply them together)
public static int METHOD(long n)
//25
{
String holder = n.ToString();
List<int> numbers = new List<int>();
for (int i = 0; i<=holder.Length-1; i++)
{
numbers.Add(Convert.ToInt32(holder[i]));
}
for (int i = 0; i <= numbers.Count - 1; i++)
{
Console.WriteLine("List Position " + [i] + " is: " + numbers[i]);
}
and you'll get "Number is 50" "Number is 53"
why does it convert 2 to 50? & 5 to 53?