Пример #1
0
        static void Main(string[] args)
        {
            var smartphone = new Smartphone();

            string[] numberTokens = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i < numberTokens.Length; i++)
            {
                smartphone.Call(numberTokens[i]);
            }
            string[] websiteTokens = Console.ReadLine().Split(" ", StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i < websiteTokens.Length; i++)
            {
                smartphone.Browse(websiteTokens[i]);
            }
        }
Пример #2
0
        public static void Main()
        {
            var phoneNumbers = Console.ReadLine().Split(' ');
            var webSites     = Console.ReadLine().Split(' ');

            var smartphone = new Smartphone();

            foreach (var phoneNumber in phoneNumbers)
            {
                Console.WriteLine(smartphone.Call(phoneNumber));
            }
            foreach (var webSite in webSites)
            {
                Console.WriteLine(smartphone.Browse(webSite));
            }
        }
Пример #3
0
        static void Main(string[] args)
        {
            var numbersToCall = Console.ReadLine().Split();
            var sitesToBrowse = Console.ReadLine().Split();
            var smartphone    = new Smartphone();

            foreach (var number in numbersToCall)
            {
                Console.WriteLine(smartphone.Call(number));
            }

            foreach (var site in sitesToBrowse)
            {
                Console.WriteLine(smartphone.Browse(site));
            }
        }
        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));
            }
        }
Пример #5
0
        static void Main(string[] args)
        {
            string[] phones = Console.ReadLine().Split();
            string[] urls   = Console.ReadLine().Split();

            Smartphone smartphone = new Smartphone();

            foreach (string number in phones)
            {
                Console.WriteLine(smartphone.Call(number));
            }

            foreach (string url in urls)
            {
                Console.WriteLine(smartphone.Browse(url));
            }
        }
Пример #6
0
        static void Main(string[] args)
        {
            var phoneNumbers = Console.ReadLine().Split(' ');
            var sites        = Console.ReadLine().Split(' ');

            Smartphone phone = new Smartphone();

            foreach (var phoneNumber in phoneNumbers)
            {
                var res = phone.Call(phoneNumber);
                Console.WriteLine(res);
            }

            foreach (var site in sites)
            {
                var res = phone.Browse(site);

                Console.WriteLine(res);
            }
        }
Пример #7
0
        static void Main(string[] args)
        {
            //0882134215 0882134333 08992134215 0558123 3333 1
            // http://softuni.bg http://youtube.com http://www.g00gle.com


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

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


            Smartphone smartphone = new Smartphone();

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

            for (int i = 0; i < sites.Length; i++)
            {
                Console.WriteLine(smartphone.Browse(sites[i]));
            }
        }
Пример #8
0
 public static void Main()
 {
     var phone = new Smartphone("Smartphone");
     TestPhone(phone);
 }