public static void Main() { Smartphone phone = new Smartphone(); string[] dataPhone = Console.ReadLine().Split(new[] { ' ' }); string[] dataWeb = Console.ReadLine().Split(new[] { ' ' }); Console.Write(phone.CallAtherPhone(dataPhone)); Console.Write(phone.BrowseSite(dataWeb)); }
static void Main(string[] args) { Smartphone smartphone = new Smartphone(Console.ReadLine().Split(' '), Console.ReadLine().Split(' ')); foreach (string number in smartphone.PhoneNumbersArray) { Console.WriteLine(smartphone.CallNumber(number)); } foreach (string site in smartphone.SitesArray) { Console.WriteLine(smartphone.BrowseSite(site)); } }