Пример #1
0
        public static void Main()
        {
            var calls = Console.ReadLine()
                        .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            var sites = Console.ReadLine()
                        .Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

            var smartPhone = new Smartphone(calls, sites);

            Console.WriteLine(smartPhone.Calling());

            Console.WriteLine(smartPhone.Browsing());
        }
Пример #2
0
        public static void Main(string[] args)
        {
            string[] phoneNumbers = Console.ReadLine().Split();
            string[] urls         = Console.ReadLine().Split();

            Smartphone smartphone = new Smartphone("Iphone");

            for (int i = 0; i < phoneNumbers.Length; i++)
            {
                Console.WriteLine(smartphone.Calling(phoneNumbers[i]));
            }

            for (int i = 0; i < urls.Length; i++)
            {
                Console.WriteLine(smartphone.Browsing(urls[i]));
            }
        }
Пример #3
0
        public static void Main()
        {
            var numbers = Console.ReadLine().Split();
            var urls    = Console.ReadLine().Split();

            Smartphone smartphone = new Smartphone();

            foreach (var number in numbers)
            {
                Console.WriteLine(smartphone.Calling(number));
            }

            foreach (var url in urls)
            {
                Console.WriteLine(smartphone.Browsing(url));
            }
        }
Пример #4
0
        static void Main(string[] args)
        {
            Smartphone smartPhone = new Smartphone();

            string[] phoneInput = Console.ReadLine().Split();

            string[] urlInput = Console.ReadLine().Split();

            for (int i = 0; i < phoneInput.Length; i++)
            {
                Console.WriteLine(smartPhone.Calling(phoneInput[i]));
            }

            for (int i = 0; i < urlInput.Length; i++)
            {
                Console.WriteLine(smartPhone.Browsing(urlInput[i]));
            }
        }
Пример #5
0
        private static void Calling(string num)
        {
            ICallable number = new Smartphone();

            Console.WriteLine(number.Calling(num));
        }