//Writing it from the console int[]? numbers = Console.ReadLine().Split().Select(int.Parse).ToArray(); //or string[] words = Console.ReadLine().Split().ToArray();