private static double CalcPhoneCallPrice(int minutes, double rate)
const double Base_Fee = .25;
callFee=Base_Fee + minutes * rate;
public static void Main()
int[] callLengths = {2,5};
double[] rates = {0.03,0.12};
Console.WriteLine("{0, 10}{1,10}{2,10}", "Minutes", "Rate", "Price");
for(int x = 0; x < callLengths.Length; ++x)
for(int y = 0; y < rates.Length; ++y)
priceOfCall = CalcPhoneCallPrice(callLengths[x], rates[y]);
Console.WriteLine("{0, 10}{1,10}{2,10}", callLengths[x], rates[y], priceOfCall.ToString("C"));