Пример #1
0
        static void Main(string[] args)
        {
            var filterer = new DigitFilterer();
            var result   = filterer.Filter(new int[] { 7, 1, 2, 3, 4, 5, 6, 7, 68, -69, 70, 15, 17 }, 9);

            Console.WriteLine(result);
        }
Пример #2
0
        public int[] CheckDigitFiltering(int[] sourceArray, int digit)
        {
            var filterer = new DigitFilterer();

            return(filterer.Filter(sourceArray, digit));
        }