static void Main(string[] args) { ProfitCalculator p = new ProfitCalculator(); string[] a = { "012.99 008.73", "099.99 050.00", "123.45 101.07" }; Console.WriteLine(p.percent(a)); Console.ReadLine(); }