static void Main(string[] args)
        {
            Console.Clear();
            Console.WriteLine("Ingrese el texto");
            var input = Console.ReadLine();

            var completeRange = new CompleteRange();
            var result        = completeRange.Build(input);

            Console.WriteLine(result);
            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            string     s            = Console.ReadLine();
            var        ListaNumeros = s.Split(',').Select(Int32.Parse).ToList();
            List <int> Lista        = new CompleteRange().build(ListaNumeros);
            string     SalidaLista  = string.Empty;

            foreach (int Numeros in Lista)
            {
                SalidaLista = SalidaLista + Numeros + ",";
            }
            Console.WriteLine(SalidaLista.Remove(SalidaLista.Length - 1));
            Console.ReadKey();
        }