Пример #1
0
        static void Main(string[] args)
        {
            Pythagorean pythagorean = new Pythagorean();

            int[] result = pythagorean.FindABC(1000);
            result.ForEach(x => { Console.Write($"{x} ,"); });
            Console.Read();
        }
Пример #2
0
        static void Main()
        {
            int sum = 1000;

            IntegerTuple abc     = Pythagorean.GetTripletWithSumOf(sum);
            int          product = abc.GetProduct();

            Console.WriteLine(product);
            Console.ReadKey();
        }