How can I separate a set of numbers in a console app in C# instead of asking the user for each individual number? E.g. instead of doing this...
double first, second, third, fourth;
Console.Write("Please enter first digit: ");
first = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter second digit: ");
second = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter third digit: ");
third = Convert.ToDouble(Console.ReadLine());
Console.Write("Please enter fourth digit: ");
fourth = Convert.ToDouble(Console.ReadLine());
stringwhich is an array of chars. I doubt they will only be single digits tho. 2 cents.