Beispiel #1
0
        static void Main(string[] args)
        {
            VeryHeavyNumber BigNum = HeavyNumberFactory.GetVeryHeavynumber("13,11");

            Console.WriteLine(BigNum.GetResult());
            VeryHeavyNumber BigNum2 = HeavyNumberFactory.GetVeryHeavynumber("2,3");

            Console.WriteLine(BigNum2.GetResult());
            VeryHeavyNumber BigNum3 = HeavyNumberFactory.GetVeryHeavynumber("13,11");

            Console.WriteLine(BigNum3.GetResult());
            VeryHeavyNumber BigNum4 = HeavyNumberFactory.GetVeryHeavynumber("7,2");

            Console.WriteLine(BigNum4.GetResult());
        }
        static void Main(string[] args)
        {
            TooMuchHeavyNumber firstHugeNumber = HeavyNumberFactory.GetVeryHeavynumber("9,12");

            Console.WriteLine(firstHugeNumber.GetResult());

            TooMuchHeavyNumber secondHugeNumber = HeavyNumberFactory.GetVeryHeavynumber("5,4");

            Console.WriteLine(secondHugeNumber.GetResult());

            TooMuchHeavyNumber thirdHugeNumber = HeavyNumberFactory.GetVeryHeavynumber("8,13");

            Console.WriteLine(thirdHugeNumber.GetResult());

            TooMuchHeavyNumber forthHugeNumber = HeavyNumberFactory.GetVeryHeavynumber("7,4");

            Console.WriteLine(forthHugeNumber.GetResult());
        }