//Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user. Disclaimer: The creator of 'C# Shell (C# Offline Compiler)' is in no way responsible for the code posted by any user. using System; //using System.IO; //using System.Linq; //using System.Collections.Generic; namespace CSharp_Shell { public static class Program { public static void Main() { string value = "0,5 3,4"; //Console.ReadLine(); string[] items = value.Split(' '); double[] arr = new double[items.Length]; for(int i = 0;i < items.Length;i++) { arr[i]= double.Parse(items[i]); // Console.Write(arr[i]); Console.WriteLine(items[i]); } //Console.WriteLine(items[i]);// грешка i- не съществува } } }