コード例 #1
0
 static void Main(string[] args)
 {
     InterestCalculator ic = new InterestCalculator(500, 5.6, 10, GetCompoundInterest);
     Console.WriteLine(ic);
     ic = new InterestCalculator(2500, 7.2, 15, GetSimpleInterest);
     Console.WriteLine(ic);
 }
コード例 #2
0
        static void Main(string[] args)
        {
            InterestCalculator ic = new InterestCalculator(500, 5.6, 10, GetCompoundInterest);

            Console.WriteLine(ic);
            ic = new InterestCalculator(2500, 7.2, 15, GetSimpleInterest);
            Console.WriteLine(ic);
        }