static void Main() { List <string> numbers = Console.ReadLine().Split().Select(x => x.Trim()).ToList(); List <string> sites = Console.ReadLine().Split().Select(x => x.Trim()).ToList(); SmartPhone sp = new SmartPhone(); foreach (var number in numbers) { sp.CallNumber(number); } foreach (var site in sites) { sp.BrowseSite(site); } }
static void Main(string[] args) { var phoneNumbers = Console.ReadLine().Split(' '); var siteURLs = Console.ReadLine().Split(' '); var phone = new SmartPhone(); foreach (var number in phoneNumbers) { phone.CallNumber(number); } foreach (var url in siteURLs) { phone.BrowseSite(url); } }