Esempio n. 1
0
        static void Main(string[] args)
        {
            var test1 = new InterestCalculator(500m, 5.6m, 10, GetCompoundInterest);
            Console.WriteLine(test1);

            var test2 = new InterestCalculator(2500m, 7.2m, 15, GetSimpleInterest);
            Console.WriteLine(test2);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var test1 = new InterestCalculator(500m, 5.6m, 10, GetCompoundInterest);

            Console.WriteLine(test1);


            var test2 = new InterestCalculator(2500m, 7.2m, 15, GetSimpleInterest);

            Console.WriteLine(test2);
        }