private static void FormatPhoneNumbers() { IEnumerable <string> lines = File.ReadLines(@"InputData/input.4.in"); foreach (var(line, index) in lines.WithIndex()) { FeedBackPrinter.PrintInputPhone(phoneNumber: line, phoneNumberIndexOnList: index); string formattedPhone = PhoneFormatter.GetFormattedPhone(line); FeedBackPrinter.PrintOutputPhone(formattedPhone); } }
private static void Main(string[] args) { FeedBackPrinter.PrintHeader("-- Teste Kennedy Messias Vieira Batista"); StartCountingTime(); FormatPhoneNumbers(); FinishCountingTime(); FeedBackPrinter.PrintHeader( string.Format("-- PROGRAMA FINALIZADO EM {0}ms", stopwatch.ElapsedMilliseconds)); }