Ejemplo n.º 1
0
        public static void Main()
        {
            var phoneNumbers = Console.ReadLine()
                               .Split();

            var urls = Console.ReadLine()
                       .Split();

            var smartphone = new Smartphone();

            foreach (var phoneNumber in phoneNumbers)
            {
                Console.WriteLine(smartphone.Call(phoneNumber));
            }

            foreach (var url in urls)
            {
                Console.WriteLine(smartphone.Browse(url));
            }
        }
Ejemplo n.º 2
0
        public static void Main()
        {
            string[] numbers = Console.ReadLine()
                               .Split(" ");

            string[] sites = Console.ReadLine()
                             .Split(" ");

            Smartphone smartphone = new Smartphone();

            for (int i = 0; i < numbers.Length; i++)
            {
                smartphone.AddNumber(numbers[i]);
            }

            for (int i = 0; i < sites.Length; i++)
            {
                smartphone.AddSite(sites[i]);
            }

            Console.WriteLine(smartphone.Call());
            Console.WriteLine(smartphone.Browsing());
        }