Exemplo n.º 1
0
        public void Start()
        {
            string first  = ReadVar.ReadString();
            string second = ReadVar.ReadString();

            first  = new string(first.Distinct().ToArray());
            second = new string(second.Distinct().ToArray());
            Console.WriteLine("Result: ");
            Console.WriteLine(first + second);
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public void Start()
        {
            Console.WriteLine("Enter array length:");
            int length = Convert.ToInt32(Console.ReadLine());

            randomArray = new int[length];
            for (int i = 0; i < length; i++)
            {
                randomArray[i] = ReadVar.Readinteger();
            }
            //генерация массива
            Console.WriteLine(randomArray.Print());
            Console.WriteLine(FindIndexOfBalance(randomArray) + 1);

            Console.ReadKey();
        }