I have a task to read n given numbers in a single line, separated by a space ( ) from the console.
n
I know how to do it whe
You simply need to split the data entered.
string numbersLine = console.ReadLine(); string[] numbers = numbersLine.Split(new char[] { ' '}); // Convert to int or whatever and use