static void Main(string[] args) { var smartPhone = new Smartphone(); var callInput = Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmptyEntries); var browseInput = Console.ReadLine().Split(' ', StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < callInput.Length; i++) { Console.WriteLine(smartPhone.Calling(callInput[i])); } for (int i = 0; i < browseInput.Length; i++) { Console.WriteLine(smartPhone.Browsing(browseInput[i])); } }
static void Main(string[] args) { var phoneNumbers = Console.ReadLine().Split(); foreach (string phoneNumber in phoneNumbers) { Smartphone Call = new Smartphone(); Console.WriteLine(Call.Calling(phoneNumber)); } var webAddress = Console.ReadLine().Split(); foreach (string url in webAddress) { Smartphone tel = new Smartphone(); Console.WriteLine(tel.Browsing(url)); } }
public static void Main(string[] args) { string[] numbers = Console.ReadLine().Split(); string[] urls = Console.ReadLine().Split(); ICall call = new Smartphone(); IBrows brows = new Smartphone(); //Smartphone smartphone = new Smartphone(); foreach (var item in numbers) { call.Call(item); } foreach (var item in urls) { brows.Brows(item); } }